FabricClient.PropertyManagementClient.PutCustomPropertyOperationAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PutCustomPropertyOperationAsync(Uri, PutCustomPropertyOperation) |
Creates or updates the specified Service Fabric property described by PutCustomPropertyOperation under a given name. |
PutCustomPropertyOperationAsync(Uri, PutCustomPropertyOperation, TimeSpan, CancellationToken) |
Creates or updates the specified Service Fabric property described by PutCustomPropertyOperation under a given name. |
PutCustomPropertyOperationAsync(Uri, PutCustomPropertyOperation)
Creates or updates the specified Service Fabric property described by PutCustomPropertyOperation under a given name.
public System.Threading.Tasks.Task PutCustomPropertyOperationAsync (Uri name, System.Fabric.PutCustomPropertyOperation operation);
member this.PutCustomPropertyOperationAsync : Uri * System.Fabric.PutCustomPropertyOperation -> System.Threading.Tasks.Task
Public Function PutCustomPropertyOperationAsync (name As Uri, operation As PutCustomPropertyOperation) As Task
Parameters
- name
- Uri
The parent Service Fabric name.
- operation
- PutCustomPropertyOperation
The put operation parameters, including property name, value and custom type information.
Returns
A task that represents the asynchronous put 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 name
does not exist.
Caused by one of the following:
WriteConflict is returned when this write operation conflicts with another write operation.
Caused by one of the following:
E_ABORT is returned when operation was aborted.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Caused by one of the following:
InvalidNameUri is returned when name
is not a valid Service Fabric name.
ValueTooLarge is returned when PropertyValue is larger than 1MB.
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.
Applies to
PutCustomPropertyOperationAsync(Uri, PutCustomPropertyOperation, TimeSpan, CancellationToken)
Creates or updates the specified Service Fabric property described by PutCustomPropertyOperation under a given name.
public System.Threading.Tasks.Task PutCustomPropertyOperationAsync (Uri name, System.Fabric.PutCustomPropertyOperation operation, TimeSpan timeout, System.Threading.CancellationToken cancellationToken);
member this.PutCustomPropertyOperationAsync : Uri * System.Fabric.PutCustomPropertyOperation * TimeSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PutCustomPropertyOperationAsync (name As Uri, operation As PutCustomPropertyOperation, timeout As TimeSpan, cancellationToken As CancellationToken) As Task
Parameters
- name
- Uri
The parent Service Fabric name.
- operation
- PutCustomPropertyOperation
The put operation parameters, including property name, value and custom type information.
- 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 put 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 name
does not exist.
Caused by one of the following:
WriteConflict is returned when this write operation conflicts with another write operation.
Caused by one of the following:
E_ABORT is returned when operation was aborted.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
See https://docs.microsoft.com/azure/service-fabric/service-fabric-errors-and-exceptions for handling common FabricClient failures.
Caused by one of the following:
InvalidNameUri is returned when name
is not a valid Service Fabric name.
ValueTooLarge is returned when PropertyValue is larger than 1MB.
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.
Applies to
Azure SDK for .NET