CustomModifiersEncoder.AddModifier(EntityHandle, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encodes a custom modifier.
public:
System::Reflection::Metadata::Ecma335::CustomModifiersEncoder AddModifier(System::Reflection::Metadata::EntityHandle type, bool isOptional);
public System.Reflection.Metadata.Ecma335.CustomModifiersEncoder AddModifier (System.Reflection.Metadata.EntityHandle type, bool isOptional);
member this.AddModifier : System.Reflection.Metadata.EntityHandle * bool -> System.Reflection.Metadata.Ecma335.CustomModifiersEncoder
Public Function AddModifier (type As EntityHandle, isOptional As Boolean) As CustomModifiersEncoder
Parameters
- isOptional
- Boolean
Is optional modifier.
Returns
Encoder of subsequent modifiers.
Exceptions
type
is null
or of an unexpected kind.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.