ServiceClientGenerator.CustomizationsModel.GetDeprecationMessage C# (CSharp) Method

GetDeprecationMessage() public method

public GetDeprecationMessage ( string operationName ) : string
operationName string
return string
        public string GetDeprecationMessage(string operationName)
        {
            try
            {
                var data = _documentRoot[DeprecatedOverridesKey];
                var operations = data[OperationKey];
                var operation = operations[operationName];
                return (string)operation[DeprecationMessageKey];
            }
            catch (NullReferenceException) { }

            throw new Exception(string.Format(@"deprecatedOverrides entry not set for deprecated operation {0}", operationName));
        }