AvroRecord::TryGetMember Method (GetMemberBinder^, Object^%)

 
System_CAPS_noteNote

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.

Indicates a value whether the operation is successful.

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

public:
virtual bool TryGetMember(
	GetMemberBinder^ binder,
	[OutAttribute] Object^% result
) override

Parameters

binder
Type: System.Dynamic::GetMemberBinder^

Provides information about the object that called the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the Console.WriteLine(sampleObject.SampleProperty) statement, where sampleObject is an instance of the class derived from the DynamicObject class, binder.Name returns "SampleProperty". The binder.IgnoreCase property specifies whether the member name is case-sensitive.

result
Type: System::Object^%

The result of the get operation. For example, if the method is called for a property, you can assign the property value to result.

Return Value

Type: System::Boolean

true if the operation is successful; otherwise, false. If this method returns false, the run-time binder of the language determines the behavior. (In most cases, a run-time exception is thrown.).

Exception Condition
ArgumentNullException

Thrown when binder is null.

Provides the implementation for operations that get member values. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as getting a value for a property.

Return to top
Show: