UnsupportedOSPlatformAttribute Class

This attribute class is solely intended to simulate and therefore preserve the 'System.Runtime.Versioning.UnsupportedOSPlatformAttribute' attribute class when migrating projects to .NET Core.

This attribute class marks APIs that were removed or are unsupported in a given operating system version.

Multiple attributes can be applied to indicate unsupported platforms or operating systems.

Definition

Namespace: DevCase.Runtime.Attributes
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[AttributeUsageAttribute(AttributeTargets.Assembly|AttributeTargets.Module|AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Enum|AttributeTargets.Constructor|AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Event|AttributeTargets.Interface, AllowMultiple = true, 
	Inherited = false)]
public sealed class UnsupportedOSPlatformAttribute : Attribute
Inheritance
Object    Attribute    UnsupportedOSPlatformAttribute

Remarks

For more information, see UnsupportedOSPlatformAttribute Class.

Constructors

UnsupportedOSPlatformAttribute(String) Initializes a new instance of the UnsupportedOSPlatformAttribute attribute class for the specified unsupported OS platform.
UnsupportedOSPlatformAttribute(String, String) Initializes a new instance of the UnsupportedOSPlatformAttribute attribute class for the specified unsupported OS platform with an additional message.

Properties

Message Gets additional information about the unsupported API, for example, a message that mostly suggests a replacement for the unsupported API.
PlatformName Gets the unsupported OS platform name that this attribute applies to, optionally including a version (eg. "windows7.0").
TypeId When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute)

Methods

Equals Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute)
GetHashCode Returns the hash code for this instance.
(Inherited from Attribute)
GetType Gets the Type of the current instance.
(Inherited from Object)
IsDefaultAttribute When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute)
Match When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute)
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also