LicenseException Конструкторы

Определение

Инициализирует новый экземпляр класса LicenseException.

Перегрузки

Имя Описание
LicenseException(Type)

Инициализирует новый экземпляр LicenseException класса для типа компонента, который был отклонен лицензией.

LicenseException(SerializationInfo, StreamingContext)
Устаревшие.

Инициализирует новый экземпляр LicenseException класса с заданным SerializationInfo и 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 представляющий тип компонента, который не был предоставлен лицензии.

См. также раздел

Применяется к

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.

Инициализирует новый экземпляр LicenseException класса с заданным SerializationInfo и 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 представляющий тип компонента, который не был предоставлен лицензии.

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 представляющий тип компонента, который не был предоставлен лицензии.

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 представляющий тип компонента, который не был предоставлен лицензии.

instance
Object

Экземпляр компонента, который не был предоставлен лицензии.

message
String

Отображаемое сообщение об исключении.

innerException
Exception

Объект, Exception представляющий исходное исключение.

См. также раздел

Применяется к