共用方式為


IDTSLogging.Enabled 屬性

Returns a Boolean that indicates if logging is enabled. This field is read-only.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
ReadOnly Property Enabled As Boolean 
    Get
'用途
Dim instance As IDTSLogging 
Dim value As Boolean 

value = instance.Enabled
bool Enabled { get; }
property bool Enabled {
    bool get ();
}
abstract Enabled : bool
function get Enabled () : boolean

屬性值

型別:System.Boolean
true if logging is enabled; false if logging is disabled.

備註

This property is used by tasks to ask if logging is available to the task. This is useful to know if preparing the information for a log entry is expensive. If logging is not enabled, you can skip preparing the information.

請參閱

參考

IDTSLogging 介面

Microsoft.SqlServer.Dts.Runtime 命名空間