WorkflowCompiler 클래스

정의

주의

The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*

C# 또는 Visual Basic 코드 및/또는 XAML 마크업을 사용하여 개발한 워크플로의 컴파일러를 나타냅니다. 이 클래스는 상속될 수 없습니다.

public ref class WorkflowCompiler sealed
public sealed class WorkflowCompiler
[System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public sealed class WorkflowCompiler
type WorkflowCompiler = class
[<System.Obsolete("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")>]
type WorkflowCompiler = class
Public NotInheritable Class WorkflowCompiler
상속
WorkflowCompiler
특성

예제

다음 코드 예제에서는 클래스의 새 인스턴스를 만들고 메서드를 WorkflowCompiler Compile 실행하는 방법을 보여 줍니다. 또한 코드는 클래스의 새 인스턴스를 WorkflowCompilerParameters 만들고 해당 값 중 일부를 설정합니다. 이 코드에서는 resultsWorkflowCompilerResults 형식이라고 가정합니다. 이 코드 예제는 WizardForm.cs 파일에서 Outlook 워크플로 마법사 SDK 샘플의 일부입니다. 자세한 내용은 Outlook 워크플로 마법사합니다.

// Compile the workflow
String[] assemblyNames = { "ReadEmailActivity.dll" };
WorkflowCompiler compiler = new WorkflowCompiler();
WorkflowCompilerParameters parameters = new WorkflowCompilerParameters(assemblyNames);
parameters.LibraryPaths.Add(Path.GetDirectoryName(typeof(BaseMailbox).Assembly.Location));
parameters.OutputAssembly = "CustomOutlookWorkflow" + Guid.NewGuid().ToString() + ".dll";
results = compiler.Compile(parameters, this.xamlFile);
' Compile the workflow
Dim assemblyNames() As String = {"ReadEmailActivity.dll"}

Dim compiler As WorkflowCompiler = New WorkflowCompiler()
Dim parameters As WorkflowCompilerParameters = New WorkflowCompilerParameters(assemblyNames)
parameters.LibraryPaths.Add(Path.GetDirectoryName(GetType(BaseMailbox).Assembly.Location))
parameters.OutputAssembly = "CustomOutlookWorkflow" + Guid.NewGuid().ToString() + ".dll"
results = compiler.Compile(parameters, Me.xamlFile)

설명

참고

이 자료에서는 더 이상 사용되지 않는 형식과 네임스페이스에 대해 설명합니다. 자세한 내용은 Deprecated Types in Windows Workflow Foundation 4.5(Windows Workflow Foundation 4.5에서 사용되지 않는 형식)를 참조하세요.

생성자

WorkflowCompiler()

WorkflowCompiler 클래스의 새 인스턴스를 초기화합니다.

메서드

Compile(WorkflowCompilerParameters, String[])

WorkflowCompilerParameters에 따라 매개 변수로 전달된 파일에 포함된 워크플로의 목록을 컴파일합니다.

Equals(Object)

지정된 개체가 현재 개체와 같은지 확인합니다.

(다음에서 상속됨 Object)
GetHashCode()

기본 해시 함수로 작동합니다.

(다음에서 상속됨 Object)
GetType()

현재 인스턴스의 Type을 가져옵니다.

(다음에서 상속됨 Object)
MemberwiseClone()

현재 Object의 단순 복사본을 만듭니다.

(다음에서 상속됨 Object)
ToString()

현재 개체를 나타내는 문자열을 반환합니다.

(다음에서 상속됨 Object)

적용 대상