SfcPropertyCollection.TryGetPropertyValue<T> Method (String, T%)

Do not reference this member directly in your code. It supports the SQL Server infrastructure.

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Function TryGetPropertyValue(Of T) ( _
    propertyName As String, _
    <OutAttribute> ByRef value As T _
) As Boolean
'Usage
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 does not support generic types and methods.

Type Parameters

  • T

Parameters

  • propertyName
    Type: System.String
    A string that represents the property name.
  • value
    Type: T%
    The value of the object in the collection.

Return Value

Type: System.Boolean
true if the Property tries to get its property value; otherwise, false.

Implements

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