Metoda TryGetProperty
Nie należy odwoływać się do tego elementu członkowskiego bezpośrednio w kodzie. Obsługuje on infrastrukturę programu SQL Server.
Przestrzeń nazw: Microsoft.SqlServer.Management.Sdk.Sfc
Zestaw: Microsoft.SqlServer.Management.Sdk.Sfc (w Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Deklaracja
Public Function TryGetProperty ( _
propertyName As String, _
<OutAttribute> ByRef property As ISfcProperty _
) As Boolean
'Użycie
Dim instance As SfcPropertyCollection
Dim propertyName As String
Dim property As ISfcProperty
Dim returnValue As Boolean
returnValue = instance.TryGetProperty(propertyName, _
property)
public bool TryGetProperty(
string propertyName,
out ISfcProperty property
)
public:
virtual bool TryGetProperty(
String^ propertyName,
[OutAttribute] ISfcProperty^% property
) sealed
abstract TryGetProperty :
propertyName:string *
property:ISfcProperty byref -> bool
override TryGetProperty :
propertyName:string *
property:ISfcProperty byref -> bool
public final function TryGetProperty(
propertyName : String,
property : ISfcProperty
) : boolean
Parameters
- propertyName
Typ: System. . :: . .String
Ciąg, który reprezentuje nazwę właściwość.
- property
Typ: Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .ISfcProperty%
SfcProperty kolekcja.
Wartość zwracana
Typ: System. . :: . .Boolean
TRUE Jeśli właściwość próbuje uzyskać jego określonej właściwości; w przeciwnym razie false.
Implementacje
ISfcPropertySet. . :: . .TryGetProperty(String, ISfcProperty%)
Zobacz także