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 | |
---|---|---|
AvroUnionAttribute(Type) | Initializes a new instance of the AvroUnionAttribute class. |
|
AvroUnionAttribute(Type, Type) | Initializes a new instance of the AvroUnionAttribute class. |
|
AvroUnionAttribute(Type, Type, Type) | Initializes a new instance of the AvroUnionAttribute class. |
|
AvroUnionAttribute(Type, Type, Type, Type) | Initializes a new instance of the AvroUnionAttribute class. |
|
AvroUnionAttribute(Type, Type, Type, Type, Type) | Initializes a new instance of the AvroUnionAttribute class. |
|
AvroUnionAttribute(Type[]) | Initializes a new instance of the AvroUnionAttribute class. |
Properties
Name | Description | |
---|---|---|
TypeAlternatives | Gets the type alternatives. |
|
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.) |
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