Share via


CreateException<T, TResult> 클래스

 

예외를 만들기 위한 작업입니다.

네임스페이스:   Microsoft.Activities
어셈블리:  Microsoft.Activities.dll의 Microsoft.Activities

상속 계층 구조

System.Object
  System.Activities.Activity
    System.Activities.ActivityWithResult
      System.Activities.Activity<TResult>
        System.Activities.CodeActivity<TResult>
          Microsoft.Activities.CreateException<T, TResult>

구문

public sealed class CreateException<T, TResult> : CodeActivity<TResult>
where T : TResult
where TResult : Exception
generic<typename T, typename TResult>
where T : TResult
where TResult : Exception
public ref class CreateException sealed : CodeActivity<TResult>
[<Sealed>]
type CreateException<'T, 'TResult when 'T : 'TResult when 'TResult : Exception> = 
    class
        inherit CodeActivity<'TResult>
    end
Public NotInheritable Class CreateException(Of T As TResult, TResult As Exception)
    Inherits CodeActivity(Of TResult)

형식 매개 변수

  • T
    만들어진 예외의 형식입니다.
  • TResult
    반환된 예외의 형식입니다.

생성자

이름 설명
System_CAPS_pubmethod CreateException<T, TResult>()

CreateException<T, TResult> 클래스의 새 인스턴스를 초기화합니다.

속성

이름 설명
System_CAPS_protproperty CacheId

(Activity에서 상속됨.)

System_CAPS_pubproperty DisplayName

(Activity에서 상속됨.)

System_CAPS_pubproperty Id

(Activity에서 상속됨.)

System_CAPS_protproperty ImplementationVersion

(CodeActivity<TResult>에서 상속됨.)

System_CAPS_pubproperty InnerException

내부 예외를 가져오거나 설정합니다.

System_CAPS_pubproperty Message

예외 메시지를 가져오거나 설정합니다.

System_CAPS_pubproperty Result

(Activity<TResult>에서 상속됨.)

System_CAPS_pubproperty ResultType

(ActivityWithResult에서 상속됨.)

메서드

이름 설명
System_CAPS_pubmethod Equals(Object)

(Object에서 상속됨.)

System_CAPS_pubmethod GetHashCode()

(Object에서 상속됨.)

System_CAPS_pubmethod GetType()

(Object에서 상속됨.)

System_CAPS_pubmethod ToString()

(Activity에서 상속됨.)

스레드로부터의 안전성

이 형식의 모든 public static (Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

참고 항목

Microsoft.Activities 네임스페이스

맨 위로 이동