AdjustSdk.Uap.SystemInfoEstimate.GetRootDeviceInfoAsync C# (CSharp) Method

GetRootDeviceInfoAsync() private static method

private static GetRootDeviceInfoAsync ( string propertyKey ) : Task
propertyKey string
return Task
        private static async Task<string> GetRootDeviceInfoAsync(string propertyKey)
        {
            var pnp = await PnpObject.CreateFromIdAsync(PnpObjectType.DeviceContainer,
                      RootContainer, new[] { propertyKey });
            return (string)pnp.Properties[propertyKey];
        }