共用方式為


TaskDisplayName 屬性

Gets the unique name for the Analysis Services Processing task.

命名空間:  Microsoft.DataTransformationServices.Tasks.DTSProcessingTask
組件:  Microsoft.SqlServer.ASTasks (在 Microsoft.SqlServer.ASTasks.dll 中)

語法

'宣告
<BrowsableAttribute(False)> _
Public Shared ReadOnly Property TaskDisplayName As String
    Get
'用途
Dim value As String

value = DTSProcessingTask.TaskDisplayName
[BrowsableAttribute(false)]
public static string TaskDisplayName { get; }
[BrowsableAttribute(false)]
public:
static property String^ TaskDisplayName {
    String^ get ();
}
[<BrowsableAttribute(false)>]
static member TaskDisplayName : string
static function get TaskDisplayName () : String

屬性值

型別:System. . :: . .String
The unique name for the Analysis Services Processing task.

範例

The following code sample displays information about the DTSProcessingTask by using the TaskDisplayName and TaskDescription properties.

    string taskInfo;
    taskInfo = String.Format("{0}: {1}", thTask.Properties("TaskDisplayName").GetValue(thTask), thTask.Properties("TaskDescription").GetValue(thTask));
    MessageBox.Show(taskInfo, "Analysis Services Processing Task", MessageBoxButtons.OK, MessageBoxIcon.Information);
    Dim taskInfo As String
    taskInfo = [String].Format("{0}: {1}", _
      thTask.Properties("TaskDisplayName").GetValue(thTask), _
      thTask.Properties("TaskDescription").GetValue(thTask))
    MessageBox.Show(taskInfo, "Analysis Services Processing Task", _
      MessageBoxButtons.OK, MessageBoxIcon.Information)