次の方法で共有


StoreServicesCustomEventLogger Class

Definition

Provides members you can use to log events from your app to Partner Center.

public ref class StoreServicesCustomEventLogger sealed
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Microsoft.Services.Store.Engagement.IStoreServicesCustomEventLoggerStatics, 1)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Version(1)]
class StoreServicesCustomEventLogger final
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Microsoft.Services.Store.Engagement.IStoreServicesCustomEventLoggerStatics), 1)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Version(1)]
public sealed class StoreServicesCustomEventLogger
Public NotInheritable Class StoreServicesCustomEventLogger
Inheritance
Object Platform::Object IInspectable StoreServicesCustomEventLogger
Attributes

Additional features and requirements

Software Development Kit
Minimum supported OS
Windows 10 (10.0.10240.0)

Remarks

Use the Log method to log custom events from your app. These events will appear in the Custom events section of the Usage report in Partner Center.

If you have configured an app experiment with A/B testing in Partner Center, use the LogForVariation method to log data about view and conversion events from your app to the dashboard.

To get a StoreServicesCustomEventLogger object, use the GetDefault method.

Methods

GetDefault()

Gets a StoreServicesCustomEventLogger object that you can use to send log data to Partner Center for the current user of the app.

Log(String)

Logs a custom event from your app to Partner Center.

LogForVariation(StoreServicesExperimentVariation, String)

Logs a view or conversion event for an A/B test from your app to Partner Center.

Applies to