RecoveryServicesSiteRecoveryExtensions.GetSiteRecoveryEvents 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.
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
Azure SDK for .NET