Dela via


FabricClient.PropertyManagementClient.GetPropertyMetadataAsync Method

Definition

Overloads

GetPropertyMetadataAsync(Uri, String)

Gets the specified NamedPropertyMetadata.

GetPropertyMetadataAsync(Uri, String, TimeSpan, CancellationToken)

Gets the specified NamedPropertyMetadata.

GetPropertyMetadataAsync(Uri, String)

Gets the specified NamedPropertyMetadata.

public System.Threading.Tasks.Task<System.Fabric.NamedPropertyMetadata> GetPropertyMetadataAsync (Uri parentName, string propertyName);
member this.GetPropertyMetadataAsync : Uri * string -> System.Threading.Tasks.Task<System.Fabric.NamedPropertyMetadata>
Public Function GetPropertyMetadataAsync (parentName As Uri, propertyName As String) As Task(Of NamedPropertyMetadata)

Parameters

parentName
Uri

The parent Service Fabric name of the property.

propertyName
String

The name of the Property.

Returns

A task that represents the asynchronous get operation.

See NamedPropertyMetadata.

Exceptions

Caused by one of the following:

E_INVALIDARG is returned when one or more arguments are not valid.

Caused by one of the following:

E_POINTER is returned when a null reference is passed to a method that does not accept it as a valid argument.

Caused by one of the following:

NameNotFound is returned when the user provided parentName does not exist.

PropertyNotFound is returned when the specified Property does not exist.

Caused by one of the following:

E_ABORT is returned when operation was aborted.

Caused by one of the following:

InvalidNameUri is returned when parentName is not a valid Service Fabric name.

See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

This exception is thrown when an internal error has occurred.

Remarks

Timeout for the operation will be set to default timeout (1 minute).

Applies to

GetPropertyMetadataAsync(Uri, String, TimeSpan, CancellationToken)

Gets the specified NamedPropertyMetadata.

public System.Threading.Tasks.Task<System.Fabric.NamedPropertyMetadata> GetPropertyMetadataAsync (Uri parentName, string propertyName, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.GetPropertyMetadataAsync : Uri * string * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Fabric.NamedPropertyMetadata>
Public Function GetPropertyMetadataAsync (parentName As Uri, propertyName As String, timeout As TimeSpan, cancellationToken As CancellationToken) As Task(Of NamedPropertyMetadata)

Parameters

parentName
Uri

The parent Service Fabric name of the property.

propertyName
String

The name of the Property.

timeout
TimeSpan

The maximum amount of time the system will allow this operation to continue before returning TimeoutException.

cancellationToken
CancellationToken

The CancellationToken that the operation is observing. It can be used to propagate notification that the operation should be canceled.

Returns

A task that represents the asynchronous get operation.

Exceptions

Caused by one of the following:

E_INVALIDARG is returned when one or more arguments are not valid.

Caused by one of the following:

E_POINTER is returned when a null reference is passed to a method that does not accept it as a valid argument.

Caused by one of the following:

NameNotFound is returned when the user provided parentName does not exist.

PropertyNotFound is returned when the specified Property does not exist.

Caused by one of the following:

E_ABORT is returned when operation was aborted.

Caused by one of the following:

InvalidNameUri is returned when parentName is not a valid Service Fabric name.

See also https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.

This exception is thrown when an internal error has occurred.

Remarks

Timeout for the operation will be set to default timeout (1 minute).

Applies to