CreationName プロパティ
Integration Services ランタイムが使用する文字列を返します。ランタイムは、この文字列を使用して LogEntryInfo オブジェクトのインスタンスを作成し、LogEntryInfos コレクションにこのオブジェクトを追加します。このプロパティは読み取り専用です。
名前空間: Microsoft.SqlServer.Dts.Runtime
アセンブリ: Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS.dll)
構文
'宣言
Public ReadOnly Property CreationName As String
Get
'使用
Dim instance As LogEntryInfo
Dim value As String
value = instance.CreationName
public string CreationName { get; }
public:
virtual property String^ CreationName {
String^ get () sealed;
}
abstract CreationName : string
override CreationName : string
final function get CreationName () : String
プロパティ値
型: System. . :: . .String
名前を表す String です。完全修飾アセンブリ名 (マネージ アセンブリの場合) か、PROGID または CLSID (COM DLL の場合) です。
実装
使用例
次のコード例では、LogEntryInfos コレクションに対する繰り返し処理を実行し、CreationName など、処理中に見つけた各 LogEntryInfo のプロパティを出力します。
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SqlServer.Dts.Runtime;
namespace LogEntryInfosTest
{
class Program
{
static void Main(string[] args)
{
// The package is one of the SSIS Samples.
string mySample = @"C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx";
Application app = new Application();
Package pkg = app.LoadPackage(mySample, null);
LogEntryInfos logInfos = pkg.LogEntryInfos;
Console.WriteLine("Number of log entries: {0}", logInfos.Count.ToString());
foreach (LogEntryInfo logInfo in logInfos)
{
Console.WriteLine("CreationName: {0}", logInfo.CreationName);
Console.WriteLine("Description: {0}", logInfo.Description);
Console.WriteLine("FrequencyHint: {0}", logInfo.FrequencyHint);
Console.WriteLine("ID: {0}", logInfo.ID);
Console.WriteLine("Name: {0}", logInfo.Name);
}
}
}
}
Imports System
Imports System.Collections.Generic
Imports System.Text
Imports Microsoft.SqlServer.Dts.Runtime
Namespace LogEnTryInfosTest
Class Program
Shared Sub Main(ByVal args() As String)
' The package is one of the SSIS Samples.
Dim mySample As String = "C:\Program Files\Microsoft SQL Server\100\Samples\Integration Services\Package Samples\CalculatedColumns Sample\CalculatedColumns\CalculatedColumns.dtsx"
Dim app As Application = New Application()
Dim pkg As Package = app.LoadPackage(mySample,Nothing)
Dim logInfos As LogEnTryInfos = pkg.LogEnTryInfos
Console.WriteLine("Number of log entries: {0}", logInfos.Count.ToString())
Dim logInfo As LogEnTryInfo
For Each logInfo In logInfos
Console.WriteLine("CreationName: {0}", logInfo.CreationName)
Console.WriteLine("Description: {0}", logInfo.Description)
Console.WriteLine("FrequencyHint: {0}", logInfo.FrequencyHint)
Console.WriteLine("ID: {0}", logInfo.ID)
Console.WriteLine("Name: {0}", logInfo.Name)
Next
End Sub
End Class
End Namespace
サンプルの出力 :
Number of log entries: 1
CreationName:
Description: Logs package diagnostics information, e.g. maximum concurrent executables
FrequencyHint: Consistent
ID: {65F44252-EB0C-4CCB-ADE4-BA4AB86B4CF9}
Name: Diagnostic