TaskHostClass 類別
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
For more information, see TaskHost.
繼承階層
System.Object
Microsoft.SqlServer.Dts.Runtime.Wrapper.TaskHostClass
命名空間: Microsoft.SqlServer.Dts.Runtime.Wrapper
組件: Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
語法
'宣告
<GuidAttribute("3A0263D5-875D-4BD4-A133-FC2EBFBAE434")> _
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
Public Class TaskHostClass _
Implements TaskHost, IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100, _
IDTSExecutable100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, _
IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100
'用途
Dim instance As TaskHostClass
[GuidAttribute("3A0263D5-875D-4BD4-A133-FC2EBFBAE434")]
[ClassInterfaceAttribute(ClassInterfaceType.None)]
public class TaskHostClass : TaskHost,
IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100,
IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100,
IDTSPersist100, IDTSRuntimeObject100
[GuidAttribute(L"3A0263D5-875D-4BD4-A133-FC2EBFBAE434")]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
public ref class TaskHostClass : TaskHost,
IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100,
IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100,
IDTSPersist100, IDTSRuntimeObject100
[<GuidAttribute("3A0263D5-875D-4BD4-A133-FC2EBFBAE434")>]
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
type TaskHostClass =
class
interface TaskHost
interface IDTSObjectHost100
interface IDTSTaskHost100
interface IDTSContainer100
interface IDTSExecutable100
interface IDTSEventsProvider100
interface IDTSExecutionMetrics100
interface IDTSPropertiesProvider100
interface IDTSName100
interface IDTSBreakpointSite100
interface IDTSSuspend100
interface IDTSPersist100
interface IDTSRuntimeObject100
end
public class TaskHostClass implements TaskHost, IDTSObjectHost100, IDTSTaskHost100, IDTSContainer100, IDTSExecutable100, IDTSEventsProvider100, IDTSExecutionMetrics100, IDTSPropertiesProvider100, IDTSName100, IDTSBreakpointSite100, IDTSSuspend100, IDTSPersist100, IDTSRuntimeObject100
TaskHostClass 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
TaskHostClass | 基礎結構。Initializes a new instance of the TaskHostClass class. |
上層
屬性
名稱 | 說明 | |
---|---|---|
ApartmentThreaded | 基礎結構。For more information, see TaskHost. | |
CreationName | 基礎結構。Gets the string that is used to create a TaskHostClass object. | |
DebugMode | 基礎結構。Gets or sets a value that indicates whether the TaskHostClass object is in debug mode. | |
DelayValidation | 基礎結構。Gets or sets a value that indicates whether validation of the task is delayed until run time. | |
Description | 基礎結構。Gets or sets the description of the TaskHostClass object. | |
Disable | 基礎結構。Gets or sets a value that indicates whether the TaskHostClass object is disabled. | |
DisableEventHandlers | 基礎結構。Gets or sets a value that indicates whether the event handlers on task are disabled. | |
EventHandlers | 基礎結構。Gets a collection of event handler objects. | |
EventInfos | 基礎結構。Gets a collection of EventInfo objects. | |
ExecutionDuration | 基礎結構。Gets a value that indicates the amount of time that the container spent in execution. | |
ExecutionResult | 基礎結構。Gets a value that indicates the success or failure of the execution of the TaskHostClass object. | |
ExecutionStatus | 基礎結構。Gets a value that indicates the current status of the execution of the TaskHostClass object at the time of the call. | |
ExecutionValue | 基礎結構。Gets the result of the task execution. | |
ExecValueVariable | 基礎結構。Gets or sets the custom variable that contains the execution value of the task. | |
FailPackageOnFailure | 基礎結構。Gets or sets a value that indicates whether the package fails when a child container fails. | |
FailParentOnFailure | 基礎結構。Gets or sets a value that indicates whether the parent container fails when a child container fails. | |
ForcedExecutionValue | 基礎結構。Gets or sets an object that contains a container-defined value. | |
ForceExecutionResult | 基礎結構。Gets or sets the execution result of the container. | |
ForceExecutionValue | 基礎結構。Gets or sets a value that indicates whether the execution value of the container should be forced to contain a particular value. | |
HostType | 基礎結構。Gets the value from the DTSObjectHostType enumeration that describes the host of the container. | |
ID | 基礎結構。Gets a GUID that identifies the DTSForcedExecResult. | |
IDTSContainer100_DelayValidation | 基礎結構。Gets or sets a value that indicates whether the validation is delayed. | |
IDTSSuspend100_SuspendRequired | 基礎結構。Gets or sets a value that indicates whether the task should suspend when they encounter a breakpoint. | |
InnerObject | 基礎結構。Gets the object that is contained by the TaskHostClass. | |
IsDefaultLocaleID | 基礎結構。Gets a value that indicates whether the container uses the default locale. | |
IsolationLevel | 基礎結構。Gets the isolation level of the TaskHostClass. | |
LocaleID | 基礎結構。Gets or sets the locale id to use when the TaskHostClass object is executed. | |
LogEntryInfos | 基礎結構。Gets a collection of IDTSLogEntryInfos100 object. | |
LoggingMode | 基礎結構。Gets or sets the logging mode of the container. | |
LoggingOptions | 基礎結構。Gets an object that contains properties that indicates the filtering and logging resource for containers. | |
MaximumErrorCount | 基礎結構。Gets or sets a value that indicates the maximum number of errors. | |
Name | 基礎結構。Gets or sets the name of the TaskHostClass. | |
Parent | 基礎結構。Gets the parent container. | |
Properties | 基礎結構。Gets a IDTSProperties100 collection that contains the properties associated with the task. | |
StartTime | 基礎結構。Gets the time that the container began execution. | |
StopTime | 基礎結構。Gets the time that the container ended execution. | |
SuspendRequired | 基礎結構。Gets or set a value that indicates whether the task should suspend when they encounter a breakpoint. | |
TransactionOption | 基礎結構。Gets or sets a DTSTransactionOption enumeration that indicates whether the container participates in transactions. | |
VariableDispenser | 基礎結構。Gets a IDTSVariableDispenser100 object so variables associated with the container can be locked. | |
Variables | 基礎結構。Gets a collection that contains the variables associated with this container. |
上層
方法
名稱 | 說明 | |
---|---|---|
AcceptBreakpointManager | 基礎結構。This method is called by the run-time engine when a task or container is created. | |
ComputeExpressions | 基礎結構。Computes expressions of the TaskHostClass object. | |
Equals | (繼承自 Object。) | |
Execute | 基礎結構。Runs the application. | |
Finalize | (繼承自 Object。) | |
GetExpression | 基礎結構。Returns a string that contains the expression for the specified property. | |
GetHashCode | (繼承自 Object。) | |
GetParentID | 基礎結構。Returns the parent identifier of the TaskHostClass object. | |
GetType | (繼承自 Object。) | |
IDTSSuspend100_ResumeExecution | 基礎結構。Resumes the suspend execution. | |
IDTSSuspend100_SuspendExecution | 基礎結構。Suspends the execution. | |
LoadFromXML | 基礎結構。Loads a package saves as XML format. | |
MemberwiseClone | (繼承自 Object。) | |
RegenerateID | 基礎結構。Creates a new GUID for the sequence. | |
ResumeExecution | 基礎結構。Resumes execution of the task after pausing. | |
SaveToXML | 基礎結構。Saves the package to XML format. | |
SetExpression | 基礎結構。Assigns the specified expression to the property. | |
SuspendExecution | 基礎結構。Called when the executable needs to suspend. | |
ToString | (繼承自 Object。) | |
Validate | 基礎結構。Allows the package to determine if it contains invalid settings that will prevent it from executing successfully. |
上層
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。