Partager via


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
System_CAPS_pubmethod SupportedPlatformAttribute(Int32)

Initializes a new instance of the SupportedPlatformAttribute class with a platform identifier.

System_CAPS_pubmethod SupportedPlatformAttribute(Int32[])

Initializes a new instance of the SupportedPlatformAttribute class with an array of platform identifiers.

Properties

Name Description
System_CAPS_pubproperty PlatformIds

Gets the list of platform identifiers.

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethod Match(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _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