你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Source Class

Definition

The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.SourceTypeConverter))]
public class Source : Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.ISource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.SourceTypeConverter))>]
type Source = class
    interface ISource
    interface IJsonSerializable
Public Class Source
Implements ISource
Inheritance
Source
Attributes
Implements

Constructors

Source()

Creates an new Source instance.

Properties

Addr

The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port.

InstanceId

The running instance of an application. Changes after each restart.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Source.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Source.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ContainerRegistry.Models.Api202301Preview.ISource.

FromJsonString(String)

Creates a new instance of Source, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of Source into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to