public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { throw new NotImplementedException (); }
private static extern int RegisterTypeForComClientsExNative(Type t, RegistrationClassContext clsContext, RegistrationConnectionType flags);
public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { #if FEATURE_COMINTEROP_MANAGED_ACTIVATION if (type == null) throw new ArgumentNullException("type"); Contract.EndContractBlock(); if ((type as RuntimeType) == null) throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"),"type"); if (!TypeRequiresRegistration(type)) throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustBeComCreatable"),"type"); // Call the native method to do CoRegisterClassObject return RegisterTypeForComClientsExNative(type, classContext, flags); #else // FEATURE_COMINTEROP_MANAGED_ACTIVATION throw new NotImplementedException("CoreCLR_REMOVED -- managed activation removed"); #endif // FEATURE_COMINTEROP_MANAGED_ACTIVATION }
public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { }
public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { throw new NotImplementedException(); }
public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { if (type == null) { throw new ArgumentNullException("type"); } if (type as RuntimeType == null) { throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type"); } if (!this.TypeRequiresRegistration(type)) { throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustBeComCreatable"), "type"); } return(RegistrationServices.RegisterTypeForComClientsExNative(type, classContext, flags)); }
public static extern HResult CoRegisterClassObject([MarshalAs(UnmanagedType.LPStruct)] Guid rclsid, [MarshalAs(UnmanagedType.Interface)]IClassFactory pUnkn, RegistrationClassContext dwClsContext, RegistrationConnectionType flags, out IntPtr lpdwRegister);
public virtual new int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { return(default(int)); }
public virtual new int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { return default(int); }
public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags) { if (type == null) { throw new ArgumentNullException("type"); } if (!(type is RuntimeType)) { throw new ArgumentException(Environment.GetResourceString("Argument_MustBeRuntimeType"), "type"); } if (!this.TypeRequiresRegistration(type)) { throw new ArgumentException(Environment.GetResourceString("Argument_TypeMustBeComCreatable"), "type"); } return RegisterTypeForComClientsExNative(type, classContext, flags); }