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%)