TryGetPropertyValue-Methode (String, Object)
Attempts to get the property value. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
Namespace: Microsoft.SqlServer.Management.Sdk.Sfc
Assembly: Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)
Syntax
'Declaration
Function TryGetPropertyValue ( _
name As String, _
<OutAttribute> ByRef value As Object _
) As Boolean
'Usage
Dim instance As ISfcPropertySet
Dim name As String
Dim value As Object
Dim returnValue As Boolean
returnValue = instance.TryGetPropertyValue(name, _
value)
bool TryGetPropertyValue(
string name,
out Object value
)
bool TryGetPropertyValue(
String^ name,
[OutAttribute] Object^% value
)
abstract TryGetPropertyValue :
name:string *
value:Object byref -> bool
function TryGetPropertyValue(
name : String,
value : Object
) : boolean
Parameter
- name
Typ: System. . :: . .String
The name of the property.
- value
Typ: System. . :: . .Object%
An ISfcProperty object that represents property value.
Rückgabewert
Typ: System. . :: . .Boolean
true if the property value is successfully retrieved; otherwise, false.