LicenseException 建構函式

定義

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

多載

名稱 Description
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.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 A 代表未獲授權的元件類型。

另請參閱

適用於

LicenseException(SerializationInfo, StreamingContext)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
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);
[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);
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}")>]
new System.ComponentModel.LicenseException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ComponentModel.LicenseException
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

用於 SerializationInfo 反序列化。

context
StreamingContext

用於反序列化的目的地。

屬性

適用於

LicenseException(Type, Object)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
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 A 代表未獲授權的元件類型。

instance
Object

未獲授權的元件實例。

另請參閱

適用於

LicenseException(Type, Object, String)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
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 A 代表未獲授權的元件類型。

instance
Object

未獲授權的元件實例。

message
String

要顯示的例外訊息。

另請參閱

適用於

LicenseException(Type, Object, String, Exception)

來源:
LicenseException.cs
來源:
LicenseException.cs
來源:
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 A 代表未獲授權的元件類型。

instance
Object

未獲授權的元件實例。

message
String

要顯示的例外訊息。

innerException
Exception

一個 Exception 代表原始例外的例子。

另請參閱

適用於