Share via


GrantStatement.WithGrantOption Property

Gets or sets whether the WITH GRANT OPTION is defined.

Namespace:  Microsoft.Data.Schema.ScriptDom.Sql
Assembly:  Microsoft.Data.Schema.ScriptDom.Sql (in Microsoft.Data.Schema.ScriptDom.Sql.dll)

Syntax

'Declaration
Public Property WithGrantOption As Boolean
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
Returns true if the WITH GRANT OPTION is defined, false otherwise.

.NET Framework Security

See Also

Reference

GrantStatement Class

Microsoft.Data.Schema.ScriptDom.Sql Namespace