1 type derived from XamlSchemaException
System.Xaml.Tests (1)
System\Xaml\XamlSchemaExceptionTests.cs (1)
66private class SubXamlSchemaException : XamlSchemaException
22 instantiations of XamlSchemaException
System.Xaml (18)
System\Xaml\MS\Impl\XmlNsInfo.cs (8)
198throw new XamlSchemaException(SR.Format(SR.BadXmlnsDefinition, assembly.FullName)); 283throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo1, assembly.FullName)); 292throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo2, assemblyName, assembly.FullName), ex); 298throw new XamlSchemaException(SR.Format(SR.BadInternalsVisibleTo2, assemblyName, assembly.FullName), ex); 344throw new XamlSchemaException(SR.Format(SR.BadXmlnsCompat, assembly.FullName)); 349throw new XamlSchemaException(SR.Format(SR.DuplicateXmlnsCompat, assembly.FullName, oldns)); 396throw new XamlSchemaException(SR.Format(SR.BadXmlnsPrefix, assembly.FullName)); 473throw new XamlSchemaException(SR.Format(SR.XmlnsCompatCycle, assembly.FullName, ns));
System\Xaml\Schema\CollectionReflector.cs (2)
91throw new XamlSchemaException(SR.Format(SR.AmbiguousCollectionItemType, type)); 99throw new XamlSchemaException(SR.Format(SR.AmbiguousDictionaryItemType, type));
System\Xaml\Schema\Reflector.cs (1)
544throw new XamlSchemaException(SR.Format(SR.UnexpectedConstructorArg,
System\Xaml\Schema\TypeReflector.cs (1)
1098throw new XamlSchemaException(message);
System\Xaml\Schema\XamlTypeInvoker.cs (2)
85throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound, _xamlType, itemType)); 119throw new XamlSchemaException(SR.Format(SR.NoAddMethodFound, _xamlType, itemType));
System\Xaml\Schema\XamlValueConverter.cs (1)
81throw new XamlSchemaException(SR.Format(SR.ConverterMustDeriveFromBase,
System\Xaml\XamlSchemaContext.cs (1)
468throw new XamlSchemaException(SR.Format(SR.DuplicateXmlnsCompatAcrossAssemblies,
System\Xaml\XamlType.cs (2)
1711throw new XamlSchemaException(SR.Format(SR.MarkupExtensionWithDuplicateArity, UnderlyingType, typeVector.Length)); 1764throw new XamlSchemaException(err);
System.Xaml.Tests (4)
System\Xaml\XamlSchemaExceptionTests.cs (4)
16var exception = new XamlSchemaException(); 26var exception = new XamlSchemaException("message"); 44var exception = new XamlSchemaException(message, innerException); 61var exception = new XamlSchemaException();
48 references to XamlSchemaException
System.Xaml.Tests (48)
System\Xaml\Schema\XamlTypeInvokerTests.cs (2)
99Assert.Throws<XamlSchemaException>(() => invoker.AddToCollection(new GetEnumeratorClass(), "a")); 149Assert.Throws<XamlSchemaException>(() => invoker.AddToDictionary(new GetEnumeratorClass(), new object(), "a"));
System\Xaml\Schema\XamlValueConverterTests.cs (1)
87Assert.Throws<XamlSchemaException>(() => converter.ConverterInstance);
System\Xaml\XamlMemberTests.cs (6)
525Assert.Throws<XamlSchemaException>(() => member.LookupDeferringLoaderEntry()); 526Assert.Throws<XamlSchemaException>(() => member.DeferringLoader); 1815Assert.Throws<XamlSchemaException>(() => member.LookupTypeConverterEntry()); 1816Assert.Throws<XamlSchemaException>(() => member.TypeConverter); 2164Assert.Throws<XamlSchemaException>(() => member.LookupValueSerializerEntry()); 2165Assert.Throws<XamlSchemaException>(() => member.ValueSerializer);
System\Xaml\XamlSchemaContextTests.cs (1)
330Assert.Throws<XamlSchemaException>(() => context.GetPreferredPrefix("xmlns"));
System\Xaml\XamlSchemaExceptionTests.cs (4)
16var exception = new XamlSchemaException(); 26var exception = new XamlSchemaException("message"); 44var exception = new XamlSchemaException(message, innerException); 61var exception = new XamlSchemaException();
System\Xaml\XamlTypeTests.cs (34)
358Assert.Throws<XamlSchemaException>(() => type.GetXamlNamespaces()); 700Assert.Throws<XamlSchemaException>(() => type.LookupAliasedPropertyEntry(XamlLanguage.Lang)); 701Assert.Throws<XamlSchemaException>(() => type.GetAliasedProperty(XamlLanguage.Lang)); 1513Assert.Throws<XamlSchemaException>(() => type.LookupAllowedContentTypesEntry()); 1514Assert.Throws<XamlSchemaException>(() => type.AllowedContentTypes); 2108Assert.Throws<XamlSchemaException>(() => type.LookupContentPropertyEntry()); 2109Assert.Throws<XamlSchemaException>(() => type.ContentProperty); 2292Assert.Throws<XamlSchemaException>(() => type.LookupContentWrappersEntry()); 2293Assert.Throws<XamlSchemaException>(() => type.ContentWrappers); 2471Assert.Throws<XamlSchemaException>(() => type.LookupDeferringLoaderEntry()); 2472Assert.Throws<XamlSchemaException>(() => type.DeferringLoader); 2484Assert.Throws<XamlSchemaException>(() => type.LookupDeferringLoaderEntry()); 2485Assert.Throws<XamlSchemaException>(() => type.DeferringLoader); 3032Assert.Throws<XamlSchemaException>(() => type.LookupItemTypeEntry()); 3033Assert.Throws<XamlSchemaException>(() => type.ItemType); 3087Assert.Throws<XamlSchemaException>(() => type.LookupKeyTypeEntry()); 3090Assert.Throws<XamlSchemaException>(() => type.KeyType); 3375Assert.Throws<XamlSchemaException>(() => type.LookupMarkupExtensionReturnTypeEntry()); 3376Assert.Throws<XamlSchemaException>(() => type.MarkupExtensionReturnType); 3718Assert.Throws<XamlSchemaException>(() => type.LookupPositionalParametersEntry(parameterCount)); 3719Assert.Throws<XamlSchemaException>(() => type.GetPositionalParameters(parameterCount)); 3872Assert.Throws<XamlSchemaException>(() => type.LookupSetMarkupExtensionHandlerEntry()); 4071Assert.Throws<XamlSchemaException>(() => type.LookupSetTypeConverterHandlerEntry()); 4370Assert.Throws<XamlSchemaException>(() => type.LookupTypeConverterEntry()); 4371Assert.Throws<XamlSchemaException>(() => type.TypeConverter); 4380Assert.Throws<XamlSchemaException>(() => type.LookupTypeConverterEntry()); 4381Assert.Throws<XamlSchemaException>(() => type.TypeConverter); 4587Assert.Throws<XamlSchemaException>(() => type.IsUsableDuringInitialization); 4611Assert.Throws<XamlSchemaException>(() => type.LookupUsableDuringInitializationEntry()); 4612Assert.Throws<XamlSchemaException>(() => type.IsUsableDuringInitialization); 4778Assert.Throws<XamlSchemaException>(() => type.LookupValueSerializerEntry()); 4779Assert.Throws<XamlSchemaException>(() => type.ValueSerializer); 4786Assert.Throws<XamlSchemaException>(() => type.LookupValueSerializerEntry()); 4787Assert.Throws<XamlSchemaException>(() => type.ValueSerializer);