Partager via


XPathExpression.GetAttribute Method

Returns the value of the attribute of the Xpath expression.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoEnum (in microsoft.sqlserver.smoenum.dll)

Syntaxe

'Déclaration
Public Function GetAttribute ( _
    attributeName As String, _
    type As String _
) As String
public string GetAttribute (
    string attributeName,
    string type
)
public:
String^ GetAttribute (
    String^ attributeName, 
    String^ type
)
public String GetAttribute (
    String attributeName, 
    String type
)
public function GetAttribute (
    attributeName : String, 
    type : String
) : String

Paramètres

  • attributeName
    A String value that specifies the name of the attribute.
  • type
    A String value that specifies the type of attribute.

Valeur de retour

A String value that specifies the attribute value.

Notes

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Exemple

How to: Use an SMO Method with a Parameter in Visual Basic .NET

Sécurité des threads

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

XPathExpression Class
XPathExpression Members
Microsoft.SqlServer.Management.Smo Namespace

Autres ressources

SQLXML 4.0 Programming