xSQL Schema Compare SDK for SQL Server version 12
Contains(String,String) Method


The owner of the role to locate.
The name of the role to locate.
Indicates whether the collection contains a database role with the specified owner and name.
Syntax
'Declaration
 
Public Overloads Function Contains( _
   ByVal owner As System.String, _
   ByVal name As System.String _
) As System.Boolean
public System.bool Contains( 
   System.string owner,
   System.string name
)
public: System.bool Contains( 
   System.string* owner,
   System.string* name
) 

Parameters

owner
The owner of the role to locate.
name
The name of the role to locate.

Return Value

true if the collection contains a database role with the specified owner and name.
Exceptions
ExceptionDescription
System.ArgumentNullException

The owner parameter is null

or

The name parameter is null

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SqlDatabaseRoleCollection Class
SqlDatabaseRoleCollection Members
Overload List

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback