ServiceClientGenerator.CustomizationsModel.IsExcludedProperty C# (CSharp) Method

IsExcludedProperty() public method

Returns true if the specified property name is excluded at global or per-shape scope.
public IsExcludedProperty ( string propertyName, string shapeName = null ) : bool
propertyName string
shapeName string
return bool
        public bool IsExcludedProperty(string propertyName, string shapeName = null)
        {
            var globalShapeModifier = GetShapeModifier("*");
            if (globalShapeModifier != null)
            {
                if (globalShapeModifier.IsExcludedProperty(propertyName))
                    return true;
            }

            if (shapeName != null)
            {
                var shapeModifier = GetShapeModifier(shapeName);
                if (shapeModifier != null)
                    return shapeModifier.IsExcludedProperty(propertyName);
            }

            return false;
        }