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