PropertyCollection.ISfcPropertySet.TryGetPropertyValue メソッド (String, T%)

name パラメーターで指定したプロパティ値と、value パラメーターで指定した型の取得を試行します。

名前空間:  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
    汎用プロパティの型です。

パラメーター

  • name
    型: System.String
    プロパティの名前を指定する文字列です。
  • value
    型: T%
    返される値を指すポインターです。

戻り値

型: System.Boolean
ブール値。指定したプロパティ値がコレクション内に存在する場合は True、それ以外の場合は False です。

実装

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

関連項目

参照

PropertyCollection クラス

TryGetPropertyValue オーバーロード

Microsoft.SqlServer.Management.Smo 名前空間