EnumMemberAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Specifies that the field is an enumeration member and should be serialized.

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .Attribute
    Ws.ServiceModel..::..EnumMemberAttribute

Namespace:  Ws.ServiceModel
Assembly:  MFWsStack (in MFWsStack.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Field, Inherited := False, AllowMultiple := False)> _
Public NotInheritable Class EnumMemberAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
public sealed class EnumMemberAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Field, Inherited = false, AllowMultiple = false)]
public ref class EnumMemberAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Field, Inherited = false, AllowMultiple = false)>]
type EnumMemberAttribute =  
    class
        inherit Attribute
    end
public final class EnumMemberAttribute extends Attribute

The EnumMemberAttribute type exposes the following members.

Constructors

  Name Description
Public method EnumMemberAttribute Initializes a new instance of the EnumMemberAttribute class.

Top

Properties

  Name Description
Public property Value Gets or sets the value associated with the enumeration member the attribute is applied to.

Top

Methods

  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

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

Reference

Ws.ServiceModel Namespace