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

为拒绝向其授予许可证的组件的类型初始化 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

注意

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

要用于反序列化的 SerializationInfo

context
StreamingContext

用于反序列化的目标。

属性

适用于

LicenseException(Type, Object)

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

为拒绝向其授予许可证的组件的类型和实例以及要显示的消息初始化 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

为拒绝向其授予许可证的组件的类型和实例以及要显示的消息和最初引发的异常初始化 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,表示最初的异常。

另请参阅

适用于