Bagikan melalui


PropertyCollection.. Method

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Private Function TryGetProperty ( _
    name As String, _
    <OutAttribute> ByRef property As ISfcProperty _
) As Boolean Implements ISfcPropertySet.TryGetProperty
'Usage
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 supports the use of explicit interface implementations, but not the declarations of new ones.

Parameters

  • property
    Type: ISfcProperty%

Return Value

Type: System.Boolean

Implements

ISfcPropertySetTryGetProperty(String, ISfcProperty%)