Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Tries to get the property specified by the name parameter and type specified by the property parameter.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Private Function TryGetProperty ( _
name As String, _
<OutAttribute> ByRef property As ISfcProperty _
) As Boolean Implements ISfcPropertySet.TryGetProperty
'Utilisation
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 prend en charge l'utilisation d'implémentations d'interface explicites, mais pas la déclaration de nouvelles implémentations d'interface.
Paramètres
- name
Type : System.String
A string value that specifies the name of the property.
- property
Type : Microsoft.SqlServer.Management.Sdk.Sfc.ISfcProperty%
A pointer to an ISfcProperty object.
Valeur de retour
Type : System.Boolean
A Boolean value, True if the collection contains the property, otherwise False.
Implémente
ISfcPropertySet.TryGetProperty(String, ISfcProperty%)