TerminalPropertyExtensionsSetValueT Method |
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
Set value of property with type of
TypeName
Namespace: Sandbox.ModAPI.InterfacesAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void SetValue<T>(
this IMyTerminalBlock block,
string propertyId,
T value
)
<ExtensionAttribute>
Public Shared Sub SetValue(Of T) (
block As IMyTerminalBlock,
propertyId As String,
value As T
)
public:
[ExtensionAttribute]
generic<typename T>
static void SetValue(
IMyTerminalBlock^ block,
String^ propertyId,
T value
)
[<ExtensionAttribute>]
static member SetValue :
block : IMyTerminalBlock *
propertyId : string *
value : 'T -> unit
Parameters
- block
- Type: Sandbox.ModAPI.IngameIMyTerminalBlock
block reference - propertyId
- Type: SystemString
property id (name) - value
- Type: T
value to set
Type Parameters
- T
- TypeName
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IMyTerminalBlock. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also