Show / Hide Table of Contents

Class MimeMediaTypeAttribute

Associates IANA MIME media type information with a target element. This class cannot be inherited.

Inheritance
System.Object
System.Attribute
MimeMediaTypeAttribute
Implements
System.IComparable
Inherited Members
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Argotic.Common
Assembly: Argotic.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Field, Inherited = false, AllowMultiple = false)]
[Serializable]
public sealed class MimeMediaTypeAttribute : Attribute, IComparable
Remarks

See http://www.iana.org/assignments/media-types for a listing of the registered IANA MIME media types and sub-types.

Constructors

| Improve this Doc View Source

MimeMediaTypeAttribute()

Initializes a new instance of the MimeMediaTypeAttribute class.

Declaration
public MimeMediaTypeAttribute()

Properties

| Improve this Doc View Source

Documentation

Gets or sets a URI that points to the documentation the describes the MIME media type for the attributed field.

Declaration
public string Documentation { get; set; }
Property Value
Type Description
System.String

A System.Uri that points to the documentation the describes the MIME media type for the attributed field.

| Improve this Doc View Source

Name

Gets or sets the MIME media type name for the attributed field.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The MIME media type name for the attributed field.

| Improve this Doc View Source

SubName

Gets or sets the MIME media sub-type name for the attributed field.

Declaration
public string SubName { get; set; }
Property Value
Type Description
System.String

The MIME media sub-type name for the attributed field.

Methods

| Improve this Doc View Source

CompareTo(Object)

Compares the current instance with another object of the same type.

Declaration
public int CompareTo(object obj)
Parameters
Type Name Description
System.Object obj

An object to compare with this instance.

Returns
Type Description
System.Int32

A 32-bit signed integer that indicates the relative order of the objects being compared.

Exceptions
Type Condition
System.ArgumentException

The obj is not the expected System.Type.

| Improve this Doc View Source

Equals(Object)

Determines whether the specified System.Object is equal to the current instance.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare with the current instance.

Returns
Type Description
System.Boolean

true if the specified System.Object is equal to the current instance; otherwise, false.

Overrides
System.Attribute.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns a hash code for the current instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A 32-bit signed integer hash code.

Overrides
System.Attribute.GetHashCode()
| Improve this Doc View Source

ToString()

Returns a System.String that represents the current MimeMediaTypeAttribute.

Declaration
public override string ToString()
Returns
Type Description
System.String

A System.String that represents the current MimeMediaTypeAttribute.

Overrides
System.Object.ToString()
Remarks

This method returns a human-readable string for the current instance.

Operators

| Improve this Doc View Source

Equality(MimeMediaTypeAttribute, MimeMediaTypeAttribute)

Determines if operands are equal.

Declaration
public static bool operator ==(MimeMediaTypeAttribute first, MimeMediaTypeAttribute second)
Parameters
Type Name Description
MimeMediaTypeAttribute first

Operand to be compared.

MimeMediaTypeAttribute second

Operand to compare to.

Returns
Type Description
System.Boolean

true if the values of its operands are equal, otherwise; false.

| Improve this Doc View Source

GreaterThan(MimeMediaTypeAttribute, MimeMediaTypeAttribute)

Determines if first operand is greater than second operand.

Declaration
public static bool operator>(MimeMediaTypeAttribute first, MimeMediaTypeAttribute second)
Parameters
Type Name Description
MimeMediaTypeAttribute first

Operand to be compared.

MimeMediaTypeAttribute second

Operand to compare to.

Returns
Type Description
System.Boolean

true if the first operand is greater than the second, otherwise; false.

| Improve this Doc View Source

Inequality(MimeMediaTypeAttribute, MimeMediaTypeAttribute)

Determines if operands are not equal.

Declaration
public static bool operator !=(MimeMediaTypeAttribute first, MimeMediaTypeAttribute second)
Parameters
Type Name Description
MimeMediaTypeAttribute first

Operand to be compared.

MimeMediaTypeAttribute second

Operand to compare to.

Returns
Type Description
System.Boolean

false if its operands are equal, otherwise; true.

| Improve this Doc View Source

LessThan(MimeMediaTypeAttribute, MimeMediaTypeAttribute)

Determines if first operand is less than second operand.

Declaration
public static bool operator <(MimeMediaTypeAttribute first, MimeMediaTypeAttribute second)
Parameters
Type Name Description
MimeMediaTypeAttribute first

Operand to be compared.

MimeMediaTypeAttribute second

Operand to compare to.

Returns
Type Description
System.Boolean

true if the first operand is less than the second, otherwise; false.

Implements

System.IComparable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX