你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
VirtualNetworkRule Constructors
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.
Overloads
VirtualNetworkRule() |
Initializes a new instance of the VirtualNetworkRule class. |
VirtualNetworkRule(String, Nullable<Action>, String) |
Initializes a new instance of the VirtualNetworkRule class. |
VirtualNetworkRule()
Initializes a new instance of the VirtualNetworkRule class.
public VirtualNetworkRule ();
Public Sub New ()
Applies to
VirtualNetworkRule(String, Nullable<Action>, String)
Initializes a new instance of the VirtualNetworkRule class.
public VirtualNetworkRule (string virtualNetworkResourceId, Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Action? action = default, string state = default);
new Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.VirtualNetworkRule : string * Nullable<Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.Action> * string -> Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Storage.Models.VirtualNetworkRule
Public Sub New (virtualNetworkResourceId As String, Optional action As Nullable(Of Action) = Nothing, Optional state As String = Nothing)
Parameters
- virtualNetworkResourceId
- String
Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
- state
- String
Gets the state of virtual network rule. Possible values include: 'provisioning', 'deprovisioning', 'succeeded', 'failed', 'networkSourceDeleted'