public ProviderRegistrationAttribute(ProviderRegistrationType knownType) { if (knownType == ProviderRegistrationType.Custom) { throw RuntimeFailure.UseProviderRegistrationAttributeOverload("knownType", knownType); } this.registration = ProviderRegistration.FromKind(knownType); }