다음을 통해 공유


StorageSyncNameAvailabilityResult Class

Definition

The CheckNameAvailability operation response.

public class StorageSyncNameAvailabilityResult : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.StorageSync.Models.StorageSyncNameAvailabilityResult>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.StorageSync.Models.StorageSyncNameAvailabilityResult>
public class StorageSyncNameAvailabilityResult
type StorageSyncNameAvailabilityResult = class
    interface IJsonModel<StorageSyncNameAvailabilityResult>
    interface IPersistableModel<StorageSyncNameAvailabilityResult>
type StorageSyncNameAvailabilityResult = class
Public Class StorageSyncNameAvailabilityResult
Implements IJsonModel(Of StorageSyncNameAvailabilityResult), IPersistableModel(Of StorageSyncNameAvailabilityResult)
Public Class StorageSyncNameAvailabilityResult
Inheritance
StorageSyncNameAvailabilityResult
Implements

Properties

IsNameAvailable

Gets a boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or invalid and cannot be used.

Message

Gets an error message explaining the Reason value in more detail.

Reason

Gets the reason that a Storage Sync Service name could not be used. The Reason element is only returned if NameAvailable is false.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<StorageSyncNameAvailabilityResult>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<StorageSyncNameAvailabilityResult>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<StorageSyncNameAvailabilityResult>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<StorageSyncNameAvailabilityResult>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<StorageSyncNameAvailabilityResult>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to