Share via


LicenseException Konstruktory

Definice

Inicializuje novou instanci LicenseException třídy.

Přetížení

LicenseException(Type)

Inicializuje novou instanci LicenseException třídy pro typ komponenty, které byla odepřena licence.

LicenseException(SerializationInfo, StreamingContext)
Zastaralé.

Inicializuje novou instanci LicenseException třídy s danou SerializationInfo a StreamingContext.

LicenseException(Type, Object)

Inicializuje novou instanci LicenseException třídy pro typ a instanci komponenty, které byla odepřena licence.

LicenseException(Type, Object, String)

Inicializuje novou instanci LicenseException třídy pro typ a instanci komponenty, které byla odepřena licence, spolu se zprávou, která se má zobrazit.

LicenseException(Type, Object, String, Exception)

Inicializuje novou instanci LicenseException třídy pro typ a instanci komponenty, které byla odepřena licence, spolu se zprávou, která se má zobrazit, a původní vyvolanou výjimkou.

LicenseException(Type)

Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs

Inicializuje novou instanci LicenseException třídy pro typ komponenty, které byla odepřena licence.

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)

Parametry

type
Type

A Type , který představuje typ komponenty, které nebyla udělena licence.

Viz také

Platí pro

LicenseException(SerializationInfo, StreamingContext)

Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs

Upozornění

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

Inicializuje novou instanci LicenseException třídy s danou SerializationInfo a 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)

Parametry

info
SerializationInfo

Slouží SerializationInfo k deserializaci.

context
StreamingContext

Cíl, který se má použít pro deserializaci.

Atributy

Platí pro

LicenseException(Type, Object)

Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs

Inicializuje novou instanci LicenseException třídy pro typ a instanci komponenty, které byla odepřena licence.

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)

Parametry

type
Type

A Type , který představuje typ komponenty, které nebyla udělena licence.

instance
Object

Instance komponenty, které nebyla udělena licence.

Viz také

Platí pro

LicenseException(Type, Object, String)

Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs

Inicializuje novou instanci LicenseException třídy pro typ a instanci komponenty, které byla odepřena licence, spolu se zprávou, která se má zobrazit.

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)

Parametry

type
Type

A Type , který představuje typ komponenty, které nebyla udělena licence.

instance
Object

Instance komponenty, které nebyla udělena licence.

message
String

Zpráva o výjimce, která se má zobrazit.

Viz také

Platí pro

LicenseException(Type, Object, String, Exception)

Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs
Zdroj:
LicenseException.cs

Inicializuje novou instanci LicenseException třídy pro typ a instanci komponenty, které byla odepřena licence, spolu se zprávou, která se má zobrazit, a původní vyvolanou výjimkou.

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)

Parametry

type
Type

A Type , který představuje typ komponenty, které nebyla udělena licence.

instance
Object

Instance komponenty, které nebyla udělena licence.

message
String

Zpráva o výjimce, která se má zobrazit.

innerException
Exception

Představuje Exception původní výjimku.

Viz také

Platí pro