共用方式為


IServerSettings.NumberOfLogFiles 屬性

Gets or sets the NumberOfLogFiles property for an instance of SQL Server.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<DisplayNameKeyAttribute("Server_NumberOfLogFilesName")> _
<DisplayDescriptionKeyAttribute("Server_NumberOfLogFilesDesc")> _
Property NumberOfLogFiles As Integer 
    Get 
    Set
'用途
Dim instance As IServerSettings 
Dim value As Integer 

value = instance.NumberOfLogFiles

instance.NumberOfLogFiles = value
[DisplayNameKeyAttribute("Server_NumberOfLogFilesName")]
[DisplayDescriptionKeyAttribute("Server_NumberOfLogFilesDesc")]
int NumberOfLogFiles { get; set; }
[DisplayNameKeyAttribute(L"Server_NumberOfLogFilesName")]
[DisplayDescriptionKeyAttribute(L"Server_NumberOfLogFilesDesc")]
property int NumberOfLogFiles {
    int get ();
    void set (int value);
}
[<DisplayNameKeyAttribute("Server_NumberOfLogFilesName")>]
[<DisplayDescriptionKeyAttribute("Server_NumberOfLogFilesDesc")>]
abstract NumberOfLogFiles : int with get, set
function get NumberOfLogFiles () : int 
function set NumberOfLogFiles (value : int)

屬性值

型別:System.Int32
The NumberOfLogFiles property for an instance of SQL Server.

請參閱

參考

IServerSettings 介面

Microsoft.SqlServer.Management.Smo 命名空間