共用方式為


DiagnosticSetting.DiagnosticSettingsCreateOrUpdateWithResult Method

Definition

public System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.IDiagnosticSettingsResource> DiagnosticSettingsCreateOrUpdateWithResult(string resourceUri, string name, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.IDiagnosticSettingsResource body, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.ISendAsync sender, Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.SerializationMode serializationMode = Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.SerializationMode.IncludeCreateOrUpdate);
member this.DiagnosticSettingsCreateOrUpdateWithResult : string * string * Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.IDiagnosticSettingsResource * Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.IEventListener * Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.ISendAsync * Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.SerializationMode -> System.Threading.Tasks.Task<Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.IDiagnosticSettingsResource>
Public Function DiagnosticSettingsCreateOrUpdateWithResult (resourceUri As String, name As String, body As IDiagnosticSettingsResource, eventListener As IEventListener, sender As ISendAsync, Optional serializationMode As SerializationMode = Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.SerializationMode.IncludeCreateOrUpdate) As Task(Of IDiagnosticSettingsResource)

Parameters

resourceUri
String
name
String
eventListener
IEventListener
sender
ISendAsync
serializationMode
SerializationMode

Returns

Applies to