Metoda ISfcPropertySet.TryGetProperty
Próbuje uzyskać właściwość metadane.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)
Składnia
'Deklaracja
Function TryGetProperty ( _
name As String, _
<OutAttribute> ByRef property As ISfcProperty _
) As Boolean
'Użycie
Dim instance As ISfcPropertySet
Dim name As String
Dim property As ISfcProperty
Dim returnValue As Boolean
returnValue = instance.TryGetProperty(name, _
property)
bool TryGetProperty(
string name,
out ISfcProperty property
)
bool TryGetProperty(
String^ name,
[OutAttribute] ISfcProperty^% property
)
abstract TryGetProperty :
name:string *
property:ISfcProperty byref -> bool
function TryGetProperty(
name : String,
property : ISfcProperty
) : boolean
Parametry
- name
Typ: System.String
Nazwa właściwość.
- property
Typ: Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty%
ISfcProperty Obiekt, który reprezentuje właściwość metadane.
Wartość zwracana
Typ: System.Boolean
TRUE , jeśli właściwość metadane jest pomyślnie pobrane; w przeciwnym razie false.
Zobacz także