Freigeben über


DependencyCollection.ContainsUrn Method

Determines whether the specified object is a member of the DependencyCollection object.

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

Syntax

'Declaration
Public Function ContainsUrn ( _
    urn As Urn, _
    srv As Server _
) As Boolean
public bool ContainsUrn (
    Urn urn,
    Server srv
)
public:
bool ContainsUrn (
    Urn^ urn, 
    Server^ srv
)
public boolean ContainsUrn (
    Urn urn, 
    Server srv
)
public function ContainsUrn (
    urn : Urn, 
    srv : Server
) : boolean

Parameter

  • urn
    An Urn object value that specifies the object that is being validated as a member of the DependencyCollection object.
  • srv
    A Server object that specifies the instance of Microsoft SQL Server.

Rückgabewert

A Boolean value that specifies whether the specified object exists in the DependencyCollection object. If True, it is a member of the collection. If False, it is not a member of the collection.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Script Out the Dependencies for a Database 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

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

Andere Ressourcen

Scripting