GrantStatement80.WithGrantOption Property

Gets or sets whether the WITH GRANT OPTION is defined.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntax

'Declaration
Public Property WithGrantOption As Boolean 
    Get 
    Set
'Usage
Dim instance As GrantStatement80 
Dim value As Boolean 

value = instance.WithGrantOption

instance.WithGrantOption = value
public bool WithGrantOption { get; set; }
public:
property bool WithGrantOption {
    bool get ();
    void set (bool value);
}
member WithGrantOption : bool with get, set
function get WithGrantOption () : boolean 
function set WithGrantOption (value : boolean)

Property Value

Type: System.Boolean
True if the WITH GRANT OPTION is defined; otherwise, false.

See Also

Reference

GrantStatement80 Class

Microsoft.SqlServer.TransactSql.ScriptDom Namespace