AzureIoTHubConnectedService.IoTHub.GetServicePrimaryKey C# (CSharp) Method

GetServicePrimaryKey() public method

public GetServicePrimaryKey ( ) : string
return string
        public string GetServicePrimaryKey()
        {
            return this.AuthorizationPolicies.Policies.First((_) => _.KeyName == "service").PrimaryKey;
        }