Udostępnij za pośrednictwem


StoreServicesCustomEventLogger.Log(String) Method

Definition

Logs a custom event from your app to Partner Center.

public:
 virtual void Log(Platform::String ^ eventName) = Log;
void Log(winrt::hstring const& eventName);
public void Log(string eventName);
function log(eventName)
Public Sub Log (eventName As String)

Parameters

eventName
String

Platform::String

winrt::hstring

The name of the custom event to send to Partner Center.

Remarks

Custom events that you log using this method will appear in the Custom events section of the Usage report in Partner Center.

Before you can use this method in your code, you must first install the Microsoft Store Services SDK and add a reference to the Microsoft Engagement Framework to your project. For more guidance about how to use this method, including a code example, see Log custom events for Partner Center.

Applies to

See also