{"record":{"id":"541cc5683c1a0e50","repo":"dotnet/wpf","slug":"the-method-or-operation-is-not-implemented-541cc5","errorCode":null,"errorMessage":"The method or operation is not implemented.","messagePattern":"The method or operation is not implemented\\.","errorType":"exception","errorClass":"NotImplementedException","httpStatus":null,"severity":"error","filePath":"src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsImageSerializationService.cs","lineNumber":178,"sourceCode":"        }\n        \n        /// <summary>\n        /// This method verifies whether a given BitmapSource\n        /// is serializable by this service.\n        /// </summary>\n        /// <param name=\"bitmapSource\">\n        /// A reference to a BitmapSource to be checked.\n        /// </param>\n        /// <returns>\n        /// A boolean value specifing serializability.\n        /// </returns>\n        public\n        bool\n        VerifyImageSourceSerializability(\n            BitmapSource bitmapSource\n            )\n        {\n            throw new NotImplementedException();\n        }\n\n        /// <summary>\n        /// This method serializes a given BitmapSource to a\n        /// stream and returns a reference to the stream.\n        /// </summary>\n        /// <param name=\"bitmapSource\">\n        /// A reference to a BitmapSource to be serialized.\n        /// </param>\n        /// <returns>\n        /// A reference to a Stream where BitmapSource was serialized.\n        /// </returns>\n        public\n        Stream\n        SerializeToStream(\n            BitmapSource bitmapSource\n            )\n        {","sourceCodeStart":160,"sourceCodeEnd":196,"githubUrl":"https://github.com/dotnet/wpf/blob/81131a70a4c573cd62748a5c36908fc4d662daa9/src/Microsoft.DotNet.Wpf/src/ReachFramework/Serialization/XpsImageSerializationService.cs#L160-L196","documentation":"XpsImageSerializationService.VerifyImageSourceSerializability is an unimplemented stub that unconditionally throws NotImplementedException. The method exists on the interface but this implementation provides no functionality.","triggerScenarios":"Any call to VerifyImageSourceSerializability on this XpsImageSerializationService instance, regardless of the BitmapSource passed.","commonSituations":"Code paths in XPS serialization that probe whether a BitmapSource can be serialized; hitting this indicates the API surface was never implemented in ReachFramework (dead/stub API surface).","solutions":["Avoid calling VerifyImageSourceSerializability; use supported serialization paths (e.g. XpsDocument writing APIs)","Provide your own implementation if you control a derived/alternative service","Check for an updated framework version where the method is implemented"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try\n{\n    serializable = service.VerifyImageSourceSerializability(bitmapSource);\n}\ncatch (NotImplementedException)\n{\n    // Stub API: fall back to supported serialization path\n    serializable = false;\n}","preventionTips":["Do not rely on XpsImageSerializationService members; use the supported XpsDocument pipeline","Mark this API as unsupported in your codebase wrappers"],"tags":["wpf","xps","not-implemented","stub"],"backgroundTag":"method-not-implemented","analyzedSha":"81131a70a4c573cd62748a5c36908fc4d662daa9","analyzedAt":"2026-09-14T10:12:48.479Z","contentChangedAt":"2026-09-14T10:12:48.479Z","schemaVersion":2},"datasetVersion":"2026-09-22T01:17:13.364Z"}