public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags)
		{
			throw new NotImplementedException ();
		}
Example #2
0
 private static extern int RegisterTypeForComClientsExNative(Type t, RegistrationClassContext clsContext, RegistrationConnectionType flags);
Example #3
0
        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();
 }
Example #6
0
 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));
 }
Example #7
0
 private static extern int RegisterTypeForComClientsExNative(Type t, RegistrationClassContext clsContext, RegistrationConnectionType flags);
Example #8
0
 public static extern HResult CoRegisterClassObject([MarshalAs(UnmanagedType.LPStruct)] Guid rclsid,
     [MarshalAs(UnmanagedType.Interface)]IClassFactory pUnkn,
     RegistrationClassContext dwClsContext,
     RegistrationConnectionType flags,
     out IntPtr lpdwRegister);
Example #9
0
 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);
 }
Example #12
0
 public virtual int RegisterTypeForComClients(Type type, RegistrationClassContext classContext, RegistrationConnectionType flags)
 {
 }