IRoleFactory.CreateApplicationRole Method
Creates an application role object that belongs to the specified database object and has the specified name.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Function CreateApplicationRole ( _
database As IDatabase, _
name As String _
) As IMutableApplicationRole
'Usage
Dim instance As IRoleFactory
Dim database As IDatabase
Dim name As String
Dim returnValue As IMutableApplicationRole
returnValue = instance.CreateApplicationRole(database, _
name)
IMutableApplicationRole CreateApplicationRole(
IDatabase database,
string name
)
IMutableApplicationRole^ CreateApplicationRole(
IDatabase^ database,
String^ name
)
abstract CreateApplicationRole :
database:IDatabase *
name:string -> IMutableApplicationRole
function CreateApplicationRole(
database : IDatabase,
name : String
) : IMutableApplicationRole
Parameters
- database
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabase
The IDatabase object that is the parent of the application role object.
- name
Type: System.String
The name of the application role object to create.
Return Value
Type: Microsoft.SqlServer.Management.SqlParser.Metadata.IMutableApplicationRole
An application role object that belongs to the specified database object and has the specified name.
See Also
Reference
Microsoft.SqlServer.Management.SqlParser.MetadataProvider Namespace