ServerPermission Implicit Conversion (ServerPermission to ServerPermissionSet)

 
equivalentCodeEntity

Creates a new server permission set by implicitly converting server permission.

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

public static implicit operator ServerPermissionSet (
	ServerPermission permission
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.ServerPermission

The specified permission to create.

Return Value

Type: Microsoft.SqlServer.Management.Smo.ServerPermissionSet

The newly created server permission set.

The M:Microsoft.SqlServer.Management.Smo.ServerPermission.op_Implicit(Microsoft.SqlServer.Management.Smo.ServerPermission) method is a implicit user-defined type conversion operator that converts a single Server Permission to a Server Permission Set.

Return to top
Show: