Open sandboxFocus
  • TOC

Metalama Documentation

Getting started

Video tutorials

Conceptual documentation

Commented examples

API documentation

Aspect API

Extensions API

Patterns API

Flashtrace API

Introspection API

Advanced API

Post­Sharp API migration

Post­Sharp

Post­Sharp.​Aspects

Post­Sharp.​Aspects.​Advices

Post­Sharp.​Aspects.​Configuration

Post­Sharp.​Aspects.​Dependencies

Post­Sharp.​Aspects.​Internals

Post­Sharp.​Aspects.​Serialization

Post­Sharp.​Collections

Post­Sharp.​Constraints

Post­Sharp.​Extensibility

Post­Sharp.​Extensibility.​Build­Time­Logging

Post­Sharp.​Reflection

Post­Sharp.​Reflection.​Method­Body

Post­Sharp.​Serialization

  • Article

Property PersistMetaData

PersistMetaData

By default, custom attributes (metadata) are preserved in the code. To remove them, use the advice RemoveAttributes(IDeclaration, INamedType).

Declaration
[Obsolete("By default, custom attributes (metadata) are preserved in the code. To remove them, use the advice 'IAdviceFactory.RemoveAttributes(IDeclaration, INamedType)'.", false)]
public bool PersistMetaData { get; set; }
Property Value
Type Description
bool
  • Navigation