RegistryManager Class

Definition

Contains methods that services can use to perform create, remove, update and delete operations on devices.

public abstract class RegistryManager : IDisposable
type RegistryManager = class
    interface IDisposable
Public MustInherit Class RegistryManager
Implements IDisposable
Inheritance
System.Object
RegistryManager
Implements
System.IDisposable

Constructors

RegistryManager()

Methods

AddDeviceAsync(Device)

Register a new device with the system

AddDeviceAsync(Device, CancellationToken)

Register a new device with the system

AddDevices2Async(IEnumerable<Device>)

Register a list of new devices with the system

AddDevices2Async(IEnumerable<Device>, CancellationToken)

Register a list of new devices with the system

AddDevicesAsync(IEnumerable<Device>)
Obsolete.

Register a list of new devices with the system

AddDevicesAsync(IEnumerable<Device>, CancellationToken)
Obsolete.

Register a list of new devices with the system

CancelJobAsync(String)

Cancels/Deletes the job with the specified ID.

CancelJobAsync(String, CancellationToken)

Cancels/Deletes the job with the specified ID.

CloseAsync()

Closes the RegistryManager instance and disposes its resources.

CreateFromConnectionString(String)

Creates a RegistryManager from the Iot Hub connection string.

CreateQuery(String)

Retrieves a handle through which a result for a given query can be fetched.

CreateQuery(String, Nullable<Int32>)

Retrieves a handle through which a result for a given query can be fetched.

Dispose() System.IDisposable.Dispose
Dispose(Boolean)

Releases unmanaged and - optionally - managed resources.

ExportDevicesAsync(String, Boolean)

Creates a new bulk job to export device registrations to the container specified by the provided URI.

ExportDevicesAsync(String, Boolean, CancellationToken)

Creates a new bulk job to export device registrations to the container specified by the provided URI.

ExportDevicesAsync(String, String, Boolean)

Creates a new bulk job to export device registrations to the container specified by the provided URI.

ExportDevicesAsync(String, String, Boolean, CancellationToken)

Creates a new bulk job to export device registrations to the container specified by the provided URI.

GetDeviceAsync(String)

Retrieves the specified Device object.

GetDeviceAsync(String, CancellationToken)

Retrieves the specified Device object.

GetDevicesAsync(Int32)

Retrieves specified number of devices from every Iot Hub partition. This is an approximation and not a definitive list. Results are not ordered.

GetDevicesAsync(Int32, CancellationToken)

Retrieves specified number of devices from every Iot hub partition. This is an approximation and not a definitive list. Results are not ordered.

GetJobAsync(String)

Gets the job with the specified ID.

GetJobAsync(String, CancellationToken)

Gets the job with the specified ID.

GetJobsAsync()

List all jobs for the IoT Hub.

GetJobsAsync(CancellationToken)

List all jobs for the IoT Hub.

GetRegistryStatisticsAsync()

Gets usage statistics for the Iot Hub.

GetRegistryStatisticsAsync(CancellationToken)

Gets usage statistics for the Iot Hub.

GetTwinAsync(String)

Gets Twin from IotHub

GetTwinAsync(String, CancellationToken)

Gets Twin from IotHub

ImportDevicesAsync(String, String)

Creates a new bulk job to import device registrations into the IoT Hub.

ImportDevicesAsync(String, String, CancellationToken)

Creates a new bulk job to import device registrations into the IoT Hub.

ImportDevicesAsync(String, String, String)

Creates a new bulk job to import device registrations into the IoT Hub.

ImportDevicesAsync(String, String, String, CancellationToken)

Creates a new bulk job to import device registrations into the IoT Hub.

OpenAsync()

Explicitly open the RegistryManager instance.

RemoveDeviceAsync(Device)

Deletes a previously registered device from the system.

RemoveDeviceAsync(Device, CancellationToken)

Deletes a previously registered device from the system.

RemoveDeviceAsync(String)

Deletes a previously registered device from the system.

RemoveDeviceAsync(String, CancellationToken)

Deletes a previously registered device from the system.

RemoveDevices2Async(IEnumerable<Device>)

Deletes a list of previously registered devices from the system.

RemoveDevices2Async(IEnumerable<Device>, Boolean, CancellationToken)

Deletes a list of previously registered devices from the system.

RemoveDevicesAsync(IEnumerable<Device>)
Obsolete.

Deletes a list of previously registered devices from the system.

RemoveDevicesAsync(IEnumerable<Device>, Boolean, CancellationToken)
Obsolete.

Deletes a list of previously registered devices from the system.

ReplaceTwinAsync(String, String, String)

Updates the mutable fields of Twin

ReplaceTwinAsync(String, String, String, CancellationToken)

Updates the mutable fields of Twin

ReplaceTwinAsync(String, Twin, String)

Updates the mutable fields of Twin

ReplaceTwinAsync(String, Twin, String, CancellationToken)

Updates the mutable fields of Twin

UpdateDeviceAsync(Device)

Update the mutable fields of the device registration

UpdateDeviceAsync(Device, Boolean)

Update the mutable fields of the device registration

UpdateDeviceAsync(Device, Boolean, CancellationToken)

Update the mutable fields of the device registration

UpdateDeviceAsync(Device, CancellationToken)

Update the mutable fields of the device registration

UpdateDevices2Async(IEnumerable<Device>)

Update a list of devices with the system

UpdateDevices2Async(IEnumerable<Device>, Boolean, CancellationToken)

Update a list of devices with the system

UpdateDevicesAsync(IEnumerable<Device>)
Obsolete.

Update a list of devices with the system

UpdateDevicesAsync(IEnumerable<Device>, Boolean, CancellationToken)
Obsolete.

Update a list of devices with the system

UpdateTwinAsync(String, String, String)

Updates the mutable fields of Twin

UpdateTwinAsync(String, String, String, CancellationToken)

Updates the mutable fields of Twin

UpdateTwinAsync(String, Twin, String)

Updates the mutable fields of Twin

UpdateTwinAsync(String, Twin, String, CancellationToken)

Updates the mutable fields of Twin

UpdateTwins2Async(IEnumerable<Twin>)

Update the mutable fields for a list of Twins previously created within the system

UpdateTwins2Async(IEnumerable<Twin>, Boolean)

Update the mutable fields for a list of Twins previously created within the system

UpdateTwins2Async(IEnumerable<Twin>, Boolean, CancellationToken)

Update the mutable fields for a list of Twins previously created within the system

UpdateTwins2Async(IEnumerable<Twin>, CancellationToken)

Update the mutable fields for a list of Twins previously created within the system

Applies to