AvroUnionAttribute Class

 

Note

A newer version of HDInsight .NET SDK is available that uses the Azure Resource Manager (ARM) approach. You are encouraged to use the newer ARM-based version of HDInsight .NET SDK going forward. For instructions on how to use the new HDInsight .NET SDK to create a cluster, see Create HDInsight Linux clusters using .NET SDK. For instructions on how to submit jobs using the new .NET SDK and other approaches, see Submit jobs to an HDInsight cluster. The HDInsight SDK reference for the newer version is available at HDInsight .NET SDK Reference.

Represents an attribute that is used to determine type alternatives for field or property.

Namespace:   Microsoft.Hadoop.Avro
Assembly:  Microsoft.Hadoop.Avro (in Microsoft.Hadoop.Avro.dll)

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Hadoop.Avro.AvroUnionAttribute

Syntax

[SuppressMessageAttribute("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments", 
    Justification = "Types are not exposed.")]
[AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field, 
    Inherited = false, AllowMultiple = false)]
public sealed class AvroUnionAttribute : Attribute
[SuppressMessageAttribute("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments", 
    Justification = "Types are not exposed.")]
[AttributeUsageAttribute(AttributeTargets::Property | AttributeTargets::Field, 
    Inherited = false, AllowMultiple = false)]
public ref class AvroUnionAttribute sealed : Attribute
[<Sealed>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments",
    Justification = "Types are not exposed.")>]
[<AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field,
    Inherited = false, AllowMultiple = false)>]
type AvroUnionAttribute = 
    class
        inherit Attribute
    end
<SuppressMessageAttribute("Microsoft.Design", "CA1019:DefineAccessorsForAttributeArguments",
    Justification := "Types are not exposed.")>
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field,
    Inherited := False, AllowMultiple := False)>
Public NotInheritable Class AvroUnionAttribute
    Inherits Attribute

Constructors

Name Description
System_CAPS_pubmethod AvroUnionAttribute(Type)

Initializes a new instance of the AvroUnionAttribute class.

System_CAPS_pubmethod AvroUnionAttribute(Type, Type)

Initializes a new instance of the AvroUnionAttribute class.

System_CAPS_pubmethod AvroUnionAttribute(Type, Type, Type)

Initializes a new instance of the AvroUnionAttribute class.

System_CAPS_pubmethod AvroUnionAttribute(Type, Type, Type, Type)

Initializes a new instance of the AvroUnionAttribute class.

System_CAPS_pubmethod AvroUnionAttribute(Type, Type, Type, Type, Type)

Initializes a new instance of the AvroUnionAttribute class.

System_CAPS_pubmethod AvroUnionAttribute(Type[])

Initializes a new instance of the AvroUnionAttribute class.

Properties

Name Description
System_CAPS_pubproperty TypeAlternatives

Gets the type alternatives.

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.)

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.Hadoop.Avro Namespace

Return to top