# System.Security.Policy

``` diff
 namespace System.Security.Policy {
     public sealed class Hash : EvidenceBase, ISerializable {
-        public void GetObjectData(SerializationInfo info, StreamingContext context);
+        [EditorBrowsableAttribute(1)]
+        [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        public void GetObjectData(SerializationInfo info, StreamingContext context);
     }
     public class PolicyException : SystemException {
-        protected PolicyException(SerializationInfo info, StreamingContext context);
+        [EditorBrowsableAttribute(1)]
+        [ObsoleteAttribute("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
+        protected PolicyException(SerializationInfo info, StreamingContext context);
     }
 }
```

