Freigeben über


XPathExpression.GetAttribute Method

Returns the value of the attribute of the Xpath expression.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.SmoEnum (in microsoft.sqlserver.smoenum.dll)

Syntax

'Declaration
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

Parameter

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

Rückgabewert

A String value that specifies the attribute value.

Hinweise

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

Beispiel

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

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

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

Andere Ressourcen

SQLXML 4.0 Programming