ISfcPropertySet.TryGetPropertyValue-Methode (String, T)

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Private Function TryGetPropertyValue(Of T) ( _
    name As String, _
    <OutAttribute> ByRef value As T _
) As Boolean Implements ISfcPropertySet.TryGetPropertyValue
'Usage
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 bietet keine Unterstützung für die Verwendung generischer Typen und Methoden.

Typparameter

  • T
    The type of the generic property.

Parameter

  • value
    Typ: T%
    A pointer to the value to be returned.

Rückgabewert

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

Implementiert

ISfcPropertySet. . :: . .TryGetPropertyValue< (Of < <' (T> ) > > )(String, T%)