IServerAuditFacet.LoginAuditLevel 属性
Gets or sets a login audit level.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
<DisplayNameKeyAttribute("LoginAuditLevelName")> _
<DisplayDescriptionKeyAttribute("LoginAuditLevelDesc")> _
Property LoginAuditLevel As AuditLevel
Get
Set
用法
Dim instance As IServerAuditFacet
Dim value As AuditLevel
value = instance.LoginAuditLevel
instance.LoginAuditLevel = value
[DisplayNameKeyAttribute("LoginAuditLevelName")]
[DisplayDescriptionKeyAttribute("LoginAuditLevelDesc")]
AuditLevel LoginAuditLevel { get; set; }
[DisplayNameKeyAttribute(L"LoginAuditLevelName")]
[DisplayDescriptionKeyAttribute(L"LoginAuditLevelDesc")]
property AuditLevel LoginAuditLevel {
AuditLevel get ();
void set (AuditLevel value);
}
[<DisplayNameKeyAttribute("LoginAuditLevelName")>]
[<DisplayDescriptionKeyAttribute("LoginAuditLevelDesc")>]
abstract LoginAuditLevel : AuditLevel with get, set
function get LoginAuditLevel () : AuditLevel
function set LoginAuditLevel (value : AuditLevel)
属性值
类型:Microsoft.SqlServer.Management.Smo.AuditLevel
A login audit level.
注释
仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。
Auditlevel is a [FlagsAttribute] enumeration that contains the following values:
Member Name |
Description |
---|---|
All |
Audits both successful and failed login attempts. |
Failure |
Audits failed login attempts. |
None |
Does not audit login attempts. |
Success |
Audits successful login attempts. |
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间