LicenseException 建構函式

定義

初始化 LicenseException 類別的新執行個體。

多載

LicenseException(Type)

為無法取得授權元件的型別,初始化 LicenseException 類別的新執行個體。

LicenseException(SerializationInfo, StreamingContext)
已淘汰.

使用指定的 LicenseExceptionSerializationInfo,初始化 StreamingContext 類別的新執行個體。

LicenseException(Type, Object)

為無法取得授權元件的型別和執行個體,初始化 LicenseException 類別的新執行個體。

LicenseException(Type, Object, String)

為無法取得授權元件的型別和執行個體,以及要顯示的訊息,初始化 LicenseException 類別的新執行個體。

LicenseException(Type, Object, String, Exception)

為無法取得授權元件的型別和執行個體,以及要顯示的訊息和擲回的原始例外狀況,初始化 LicenseException 類別的新執行個體。

LicenseException(Type)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
LicenseException.cs

為無法取得授權元件的型別,初始化 LicenseException 類別的新執行個體。

public:
 LicenseException(Type ^ type);
public LicenseException (Type type);
public LicenseException (Type? type);
new System.ComponentModel.LicenseException : Type -> System.ComponentModel.LicenseException
Public Sub New (type As Type)

參數

type
Type

Type,表示未取得授權元件的型別。

另請參閱

適用於

LicenseException(SerializationInfo, StreamingContext)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
LicenseException.cs

警告

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

使用指定的 LicenseExceptionSerializationInfo,初始化 StreamingContext 類別的新執行個體。

protected:
 LicenseException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected LicenseException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected LicenseException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ComponentModel.LicenseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.LicenseException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.ComponentModel.LicenseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.LicenseException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

參數

info
SerializationInfo

要用於還原序列化 (Deserialization) 的 SerializationInfo

context
StreamingContext

要用於還原序列化的目的端。

屬性

適用於

LicenseException(Type, Object)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
LicenseException.cs

為無法取得授權元件的型別和執行個體,初始化 LicenseException 類別的新執行個體。

public:
 LicenseException(Type ^ type, System::Object ^ instance);
public LicenseException (Type type, object instance);
public LicenseException (Type? type, object? instance);
new System.ComponentModel.LicenseException : Type * obj -> System.ComponentModel.LicenseException
Public Sub New (type As Type, instance As Object)

參數

type
Type

Type,表示未取得授權元件的型別。

instance
Object

未取得授權之元件的執行個體。

另請參閱

適用於

LicenseException(Type, Object, String)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
LicenseException.cs

為無法取得授權元件的型別和執行個體,以及要顯示的訊息,初始化 LicenseException 類別的新執行個體。

public:
 LicenseException(Type ^ type, System::Object ^ instance, System::String ^ message);
public LicenseException (Type type, object instance, string message);
public LicenseException (Type? type, object? instance, string? message);
new System.ComponentModel.LicenseException : Type * obj * string -> System.ComponentModel.LicenseException
Public Sub New (type As Type, instance As Object, message As String)

參數

type
Type

Type,表示未取得授權元件的型別。

instance
Object

未取得授權之元件的執行個體。

message
String

要顯示的例外狀況訊息。

另請參閱

適用於

LicenseException(Type, Object, String, Exception)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
LicenseException.cs

為無法取得授權元件的型別和執行個體,以及要顯示的訊息和擲回的原始例外狀況,初始化 LicenseException 類別的新執行個體。

public:
 LicenseException(Type ^ type, System::Object ^ instance, System::String ^ message, Exception ^ innerException);
public LicenseException (Type type, object instance, string message, Exception innerException);
public LicenseException (Type? type, object? instance, string? message, Exception? innerException);
new System.ComponentModel.LicenseException : Type * obj * string * Exception -> System.ComponentModel.LicenseException
Public Sub New (type As Type, instance As Object, message As String, innerException As Exception)

參數

type
Type

Type,表示未取得授權元件的型別。

instance
Object

未取得授權之元件的執行個體。

message
String

要顯示的例外狀況訊息。

innerException
Exception

Exception,表示原始例外狀況。

另請參閱

適用於