共用方式為


PropertyCollection.ISfcPropertySet.TryGetPropertyValue 方法 (String, T%)

Tries to get the property value specified by the name parameter and type specified by the value parameter.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Private Function TryGetPropertyValue(Of T) ( _
    name As String, _
    <OutAttribute> ByRef value As T _
) As Boolean Implements ISfcPropertySet.TryGetPropertyValue
'用途
Dim instance As PropertyCollection 
Dim name As String 
Dim value As T
Dim returnValue As Boolean 

returnValue = CType(instance, ISfcPropertySet).TryGetPropertyValue(name, _
    value)
bool ISfcPropertySet.TryGetPropertyValue<T>(
    string name,
    out T value
)
private:
generic<typename T>
virtual bool TryGetPropertyValue(
    String^ name, 
    [OutAttribute] T% value
) sealed = ISfcPropertySet::TryGetPropertyValue
private abstract TryGetPropertyValue : 
        name:string * 
        value:'T byref -> bool  
private override TryGetPropertyValue : 
        name:string * 
        value:'T byref -> bool
JScript 不支援一般類型和方法。

型別參數

  • T
    The type of the generic property.

參數

  • name
    型別:System.String
    A string that specifies the name of the property.
  • value
    型別:T%
    A pointer to the value to be returned.

傳回值

型別:System.Boolean
A Boolean value, True if the collection contains the property value, otherwise False.

實作

ISfcPropertySet.TryGetPropertyValue<T>(String, T%)

請參閱

參考

PropertyCollection 類別

TryGetPropertyValue 多載

Microsoft.SqlServer.Management.Smo 命名空間