DependencyCollection.ContainsUrn Method (Urn, Server)

 

Determines whether the specified T:Microsoft.SqlServer.Management.Smo.Urn object exists on the specified server.

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

public bool ContainsUrn(
	Urn urn,
	Server srv
)

Parameters

urn
Type: Microsoft.SqlServer.Management.Sdk.Sfc.Urn

A T:Microsoft.SqlServer.Management.Smo.Urn object that specifies an object in URN format.

srv
Type: Microsoft.SqlServer.Management.Smo.Server

A Server object that specifies the instance of SQL Server.

Return Value

Type: System.Boolean

Boolean indicating if the specified URN is present in a dependency collection.

Return to top
Show: