Owner 屬性
Gets or sets the name of the database principal that is the owner of the certificate.
此 API 不符合 CLS 標準。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", _
)> _
<SfcReferenceAttribute(GetType(DatabaseRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/Role[@Name = '{2}']", _
)> _
<SfcReferenceAttribute(GetType(ApplicationRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/ApplicationRole[@Name = '{2}']", _
)> _
Public Property Owner As String
Get
Set
'用途
Dim instance As Certificate
Dim value As String
value = instance.Owner
instance.Owner = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",
)]
[SfcReferenceAttribute(typeof(DatabaseRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/Role[@Name = '{2}']",
)]
[SfcReferenceAttribute(typeof(ApplicationRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/ApplicationRole[@Name = '{2}']",
)]
public string Owner { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
[CLSCompliantAttribute(false)]
[SfcReferenceAttribute(typeof(User), L"Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",
)]
[SfcReferenceAttribute(typeof(DatabaseRole), L"Server[@Name = '{0}']/Database[@Name = '{1}']/Role[@Name = '{2}']",
)]
[SfcReferenceAttribute(typeof(ApplicationRole), L"Server[@Name = '{0}']/Database[@Name = '{1}']/ApplicationRole[@Name = '{2}']",
)]
public:
property String^ Owner {
String^ get ();
void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
[<CLSCompliantAttribute(false)>]
[<SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",
)>]
[<SfcReferenceAttribute(typeof(DatabaseRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/Role[@Name = '{2}']",
)>]
[<SfcReferenceAttribute(typeof(ApplicationRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/ApplicationRole[@Name = '{2}']",
)>]
member Owner : string with get, set
function get Owner () : String
function set Owner (value : String)
屬性值
型別:System. . :: . .String
A String value that specifies the database principal (database user, database role, or certificate) that is the owner of the certificate.