AssetService.RegisterCorrelation 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.
Overloads
RegisterCorrelation(String, Guid, TelemetryEventCorrelation) |
Register correlation from a given asset id with specified asset type. |
RegisterCorrelation(String, String, TelemetryEventCorrelation) |
Register correlation from a given asset id with specified asset type. |
RegisterCorrelation(String, Guid, TelemetryEventCorrelation)
Register correlation from a given asset id with specified asset type.
public:
void RegisterCorrelation(System::String ^ assetTypeName, Guid assetId, Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation correlation);
public void RegisterCorrelation (string assetTypeName, Guid assetId, Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation correlation);
member this.RegisterCorrelation : string * Guid * Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation -> unit
Public Sub RegisterCorrelation (assetTypeName As String, assetId As Guid, correlation As TelemetryEventCorrelation)
Parameters
- assetTypeName
- String
Asset type name. It is defined by asset provider.
- assetId
- Guid
Used to identify the asset. The id should be immutable in the asset life cycle, even if the status or content changes over time. E.g., project guid is generated during project creation and will never change. This makes it a good candidate for asset id of Project asset.
- correlation
- TelemetryEventCorrelation
correlation of the asset.
Remarks
Used by Asset Provider.
Applies to
RegisterCorrelation(String, String, TelemetryEventCorrelation)
Register correlation from a given asset id with specified asset type.
public:
void RegisterCorrelation(System::String ^ assetTypeName, System::String ^ assetId, Microsoft::VisualStudio::Telemetry::TelemetryEventCorrelation correlation);
public void RegisterCorrelation (string assetTypeName, string assetId, Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation correlation);
member this.RegisterCorrelation : string * string * Microsoft.VisualStudio.Telemetry.TelemetryEventCorrelation -> unit
Public Sub RegisterCorrelation (assetTypeName As String, assetId As String, correlation As TelemetryEventCorrelation)
Parameters
- assetTypeName
- String
Asset type name. It is defined by asset provider.
- assetId
- String
Used to identify the asset. The id should be immutable in the asset life cycle, even if the status or content changes over time. E.g., project guid is generated during project creation and will never change. This makes it a good candidate for asset id of Project asset.
- correlation
- TelemetryEventCorrelation
correlation of the asset.
Remarks
Used by Asset Provider.