NLog.Extensions.AzureTableStorage.ConfigManager.GetSettingByKey C# (CSharp) 메소드

GetSettingByKey() 공개 메소드

public GetSettingByKey ( string key ) : string
key string
리턴 string
        public string GetSettingByKey(string key)
        {
            //try get string from app settings or cloud service config
           return CloudConfigurationManager.GetSetting(key);
        }
    }

Usage Example

        protected override void InitializeTarget()
        {
            base.InitializeTarget();
            ValidateParameters();
            _configManager = new ConfigManager(ConnectionStringKey);
            _tableStorageManager = new TableStorageManager(_configManager, TableName);

            if (!string.IsNullOrWhiteSpace(PartitionKeyPrefixKey))
                PartitionKeyPrefix = _configManager.GetSettingByKey(PartitionKeyPrefixKey);
        }
All Usage Examples Of NLog.Extensions.AzureTableStorage.ConfigManager::GetSettingByKey