Поделиться через


Метод PropertyCollection.ISfcPropertySet.TryGetProperty

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

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Private Function TryGetProperty ( _
    name As String, _
    <OutAttribute> ByRef property As ISfcProperty _
) As Boolean Implements ISfcPropertySet.TryGetProperty
'Применение
Dim instance As PropertyCollection 
Dim name As String 
Dim property As ISfcProperty 
Dim returnValue As Boolean 

returnValue = CType(instance, ISfcPropertySet).TryGetProperty(name, _
    property)
bool ISfcPropertySet.TryGetProperty(
    string name,
    out ISfcProperty property
)
private:
virtual bool TryGetProperty(
    String^ name, 
    [OutAttribute] ISfcProperty^% property
) sealed = ISfcPropertySet::TryGetProperty
private abstract TryGetProperty : 
        name:string * 
        property:ISfcProperty byref -> bool  
private override TryGetProperty : 
        name:string * 
        property:ISfcProperty byref -> bool
JScript поддерживает использование явных реализаций интерфейса, но не объявление новых.

Параметры

  • name
    Тип: System.String
    A string value that specifies the name of the property.

Возвращаемое значение

Тип: System.Boolean
A Boolean value, True if the collection contains the property, otherwise False.

Реализует

ISfcPropertySet.TryGetProperty(String, ISfcProperty%)

См. также

Справочник

PropertyCollection Класс

Пространство имен Microsoft.SqlServer.Management.Smo