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 value specified by the name parameter and type specified by the value parameter.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Private Function TryGetPropertyValue(Of T) ( _
name As String, _
<OutAttribute> ByRef value As T _
) As Boolean Implements ISfcPropertySet.TryGetPropertyValue
'Utilisation
Dim instance As PropertyCollection
Dim name As String
Dim value As T
Dim returnValue As Boolean
returnValue = CType(instance, ISfcPropertySet).TryGetPropertyValue(name, _
value)
bool ISfcPropertySet.TryGetPropertyValue<T>(
string name,
out T value
)
private:
generic<typename T>
virtual bool TryGetPropertyValue(
String^ name,
[OutAttribute] T% value
) sealed = ISfcPropertySet::TryGetPropertyValue
private abstract TryGetPropertyValue :
name:string *
value:'T byref -> bool
private override TryGetPropertyValue :
name:string *
value:'T byref -> bool
JScript ne prend pas en charge les types et les méthodes génériques.
Paramètres de type
- T
The type of the generic property.
Paramètres
- name
Type : System.String
A string that specifies the name of the property.
- value
Type : T%
A pointer to the value to be returned.
Valeur de retour
Type : System.Boolean
A Boolean value, True if the collection contains the property value, otherwise False.
Implémente
ISfcPropertySet.TryGetPropertyValue<T>(String, T%)