SupportedPlatformAttribute Class
Represents an attribute that is designed to restrict an add-in from running on unsupported or unlicensed platforms. This class cannot be inherited.
Namespace: Microsoft.WindowsServerSolutions.Common
Assembly: AdminCommon (in AdminCommon.dll)
Inheritance Hierarchy
System.Object
System.Attribute
Microsoft.WindowsServerSolutions.Common.SupportedPlatformAttribute
Syntax
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class SupportedPlatformAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class SupportedPlatformAttribute sealed : Attribute
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)>
Public NotInheritable Class SupportedPlatformAttribute
Inherits Attribute
Constructors
Name | Description | |
---|---|---|
SupportedPlatformAttribute(Int32) | Initializes a new instance of the SupportedPlatformAttribute class with a platform identifier. |
|
SupportedPlatformAttribute(Int32[]) | Initializes a new instance of the SupportedPlatformAttribute class with an array of platform identifiers. |
Properties
Name | Description | |
---|---|---|
PlatformIds | Gets the list of platform identifiers. |
|
TypeId | (Inherited from Attribute.) |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Attribute.) |
|
GetHashCode() | (Inherited from Attribute.) |
|
GetType() | (Inherited from Object.) |
|
IsDefaultAttribute() | (Inherited from Attribute.) |
|
Match(Object) | (Inherited from Attribute.) |
|
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
|
_Attribute.GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
|
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
Remarks
You should place this attribute on the class that implements the add-in. If this attribute is absent, there is no additional limitation to platform support.
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.WindowsServerSolutions.Common Namespace
Return to top