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)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
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)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
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)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
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)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
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)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
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

另请参阅

适用于