共用方式為


RecoveryServicesSiteRecoveryExtensions.GetSiteRecoveryEvents Method

Definition

Gets a collection of SiteRecoveryEventResources in the ResourceGroupResource. MockingTo mock this method, please mock GetSiteRecoveryEvents(String) instead.

public static Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryEventCollection GetSiteRecoveryEvents (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string resourceName);
static member GetSiteRecoveryEvents : Azure.ResourceManager.Resources.ResourceGroupResource * string -> Azure.ResourceManager.RecoveryServicesSiteRecovery.SiteRecoveryEventCollection
<Extension()>
Public Function GetSiteRecoveryEvents (resourceGroupResource As ResourceGroupResource, resourceName As String) As SiteRecoveryEventCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

resourceName
String

The name of the recovery services vault.

Returns

An object representing collection of SiteRecoveryEventResources and their operations over a SiteRecoveryEventResource.

Exceptions

resourceGroupResource or resourceName is null.

resourceName is an empty string, and was expected to be non-empty.

Applies to