Condividi tramite


MongoDBRole Class

Definition

The set of roles permitted through this Role Definition.

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

Constructors

MongoDBRole()

Initializes a new instance of MongoDBRole.

Properties

DBName

The database name the role is applied.

Role

The role name.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBRole>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBRole>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBRole>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBRole>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBRole>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to