Class DnnDeprecatedAttribute
Marks a type or member as deprecated.
Inheritance
System.Object
DnnDeprecatedAttribute
Namespace: DotNetNuke.Internal.SourceGenerators
Assembly: DotNetNuke.Abstractions.dll
Syntax
public class DnnDeprecatedAttribute : Attribute
Constructors
| Improve this Doc View SourceDnnDeprecatedAttribute(Int32, Int32, Int32, String)
Initializes a new instance of the DnnDeprecatedAttribute class.
Declaration
public DnnDeprecatedAttribute(int majorVersion, int minorVersion, int patchVersion, string replacement)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | majorVersion | The major version in which the type or member was deprecated. |
| System.Int32 | minorVersion | The minor version in which the type or member was deprecated. |
| System.Int32 | patchVersion | The patch version in which the type or member was deprecated. |
| System.String | replacement | The suggested replacement or alternative. |
Properties
| Improve this Doc View SourceMajorVersion
Gets the major version in which the type or member was deprecated.
Declaration
public int MajorVersion { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
MinorVersion
Gets the minor version in which the type or member was deprecated.
Declaration
public int MinorVersion { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
PatchVersion
Gets the patch version in which the type or member was deprecated.
Declaration
public int PatchVersion { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
RemovalVersion
Gets or sets the major version in which the type or member will be removed.
Declaration
public int RemovalVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Replacement
Gets the suggested replacement or alternative.
Declaration
public string Replacement { get; }
Property Value
| Type | Description |
|---|---|
| System.String |