Edit

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

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

C#
public LicenseException(Type? type);
C#
public LicenseException(Type type);

Parameters

type
Type

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

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

LicenseException(SerializationInfo, StreamingContext)

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

C#
[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);
C#
protected LicenseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);

Parameters

info
SerializationInfo

The SerializationInfo to be used for deserialization.

context
StreamingContext

The destination to be used for deserialization.

Attributes

Applies to

.NET 10 and other versions
Product Versions (Obsolete)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7 (8, 9, 10)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

LicenseException(Type, Object)

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

C#
public LicenseException(Type? type, object? instance);
C#
public LicenseException(Type type, object instance);

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

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

LicenseException(Type, Object, String)

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

C#
public LicenseException(Type? type, object? instance, string? message);
C#
public LicenseException(Type type, object instance, string message);

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

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

LicenseException(Type, Object, String, Exception)

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

C#
public LicenseException(Type? type, object? instance, string? message, Exception? innerException);
C#
public LicenseException(Type type, object instance, string message, Exception innerException);

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

.NET 10 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1