TryGetPropertyValue(T) 方法 (String, T)
不要直接在程式碼中參照此成員。其支援 SQL Server 基礎結構。
命名空間: Microsoft.SqlServer.Management.Sdk.Sfc
組件: Microsoft.SqlServer.Management.Sdk.Sfc (在 Microsoft.SqlServer.Management.Sdk.Sfc.dll 中)
語法
'宣告
Public Function TryGetPropertyValue(Of T) ( _
propertyName As String, _
<OutAttribute> ByRef value As T _
) As Boolean
'用途
Dim instance As SfcPropertyCollection
Dim propertyName As String
Dim value As T
Dim returnValue As Boolean
returnValue = instance.TryGetPropertyValue(propertyName, _
value)
public bool TryGetPropertyValue<T>(
string propertyName,
out T value
)
public:
generic<typename T>
virtual bool TryGetPropertyValue(
String^ propertyName,
[OutAttribute] T% value
) sealed
abstract TryGetPropertyValue :
propertyName:string *
value:'T byref -> bool
override TryGetPropertyValue :
propertyName:string *
value:'T byref -> bool
JScript 不支援一般類型和方法。
型別參數
- T
參數
- propertyName
型別:System. . :: . .String
A string that represents the property name.
- value
型別:T%
The value of the object in the collection.
傳回值
型別:System. . :: . .Boolean
true if the Property tries to get its property value; otherwise, false.
實作
ISfcPropertySet. . :: . .TryGetPropertyValue< (Of < <' (T> ) > > )(String, T%)