| TerminalPropertyExtensionsGetValueT Method | 
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
            Returns value of specified property as 
TypeName 
Namespace: Sandbox.ModAPI.InterfacesAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntaxpublic static T GetValue<T>(
	this IMyTerminalBlock block,
	string propertyId
)
<ExtensionAttribute>
Public Shared Function GetValue(Of T) ( 
	block As IMyTerminalBlock,
	propertyId As String
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T GetValue(
	IMyTerminalBlock^ block, 
	String^ propertyId
)
[<ExtensionAttribute>]
static member GetValue : 
        block : IMyTerminalBlock * 
        propertyId : string -> 'T 
Parameters
- block
- Type: Sandbox.ModAPI.IngameIMyTerminalBlock
 block reference
- propertyId
- Type: SystemString
 property id (name)
Type Parameters
- T
- required value type of TypeName
Return Value
Type: 
Tproperty value as 
TypeNameUsage 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
See Also