Redigera

Dela via


LicenseException Constructors

Definition

Initializes a new instance of the LicenseException class.

Overloads

LicenseException(Type)

Initializes a new instance of the LicenseException class for the type of component that was denied a license.

LicenseException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the LicenseException class with the given SerializationInfo and StreamingContext.

LicenseException(Type, Object)

Initializes a new instance of the LicenseException class for the type and the instance of the component that was denied a license.

LicenseException(Type, Object, String)

Initializes a new instance of the LicenseException class for the type and the instance of the component that was denied a license, along with a message to display.

LicenseException(Type, Object, String, Exception)

Initializes a new instance of the LicenseException class for the type and the instance of the component that was denied a license, along with a message to display and the original exception thrown.

LicenseException(Type)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs

Initializes a new instance of the LicenseException class for the type of component that was denied a license.

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)

Parameters

type
Type

A Type that represents the type of component that was not granted a license.

See also

Applies to

LicenseException(SerializationInfo, StreamingContext)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs

Caution

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

Initializes a new instance of the LicenseException class with the given SerializationInfo and 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)

Parameters

info
SerializationInfo

The SerializationInfo to be used for deserialization.

context
StreamingContext

The destination to be used for deserialization.

Attributes

Applies to

LicenseException(Type, Object)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs

Initializes a new instance of the LicenseException class for the type and the instance of the component that was denied a license.

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)

Parameters

type
Type

A Type that represents the type of component that was not granted a license.

instance
Object

The instance of the component that was not granted a license.

See also

Applies to

LicenseException(Type, Object, String)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs

Initializes a new instance of the LicenseException class for the type and the instance of the component that was denied a license, along with a message to display.

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)

Parameters

type
Type

A Type that represents the type of component that was not granted a license.

instance
Object

The instance of the component that was not granted a license.

message
String

The exception message to display.

See also

Applies to

LicenseException(Type, Object, String, Exception)

Source:
LicenseException.cs
Source:
LicenseException.cs
Source:
LicenseException.cs

Initializes a new instance of the LicenseException class for the type and the instance of the component that was denied a license, along with a message to display and the original exception thrown.

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)

Parameters

type
Type

A Type that represents the type of component that was not granted a license.

instance
Object

The instance of the component that was not granted a license.

message
String

The exception message to display.

innerException
Exception

An Exception that represents the original exception.

See also

Applies to