diff options
Diffstat (limited to 'src/mscorlib/src/System/Runtime/InteropServices/NonPortable.cs')
-rw-r--r-- | src/mscorlib/src/System/Runtime/InteropServices/NonPortable.cs | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/mscorlib/src/System/Runtime/InteropServices/NonPortable.cs b/src/mscorlib/src/System/Runtime/InteropServices/NonPortable.cs index ae974460f7..7b7c5efb90 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/NonPortable.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/NonPortable.cs @@ -15,7 +15,7 @@ namespace System.Runtime.InteropServices public static int AddRef(System.IntPtr pUnk) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static bool AreComObjectsAvailableForCleanup() @@ -25,12 +25,12 @@ namespace System.Runtime.InteropServices public static System.IntPtr CreateAggregatedObject(System.IntPtr pOuter, object o) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static Object BindToMoniker(String monikerName) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static void CleanupUnusedObjectsInCurrentContext() @@ -40,42 +40,42 @@ namespace System.Runtime.InteropServices public static System.IntPtr CreateAggregatedObject<T>(System.IntPtr pOuter, T o) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static object CreateWrapperOfType(object o, System.Type t) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static TWrapper CreateWrapperOfType<T, TWrapper>(T o) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static void ChangeWrapperHandleStrength(Object otp, bool fIsWeak) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static int FinalReleaseComObject(object o) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static System.IntPtr GetComInterfaceForObject(object o, System.Type T) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static System.IntPtr GetComInterfaceForObject(object o, System.Type T, System.Runtime.InteropServices.CustomQueryInterfaceMode mode) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static System.IntPtr GetComInterfaceForObject<T, TInterface>(T o) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static System.IntPtr GetHINSTANCE(System.Reflection.Module m) @@ -89,67 +89,67 @@ namespace System.Runtime.InteropServices public static System.IntPtr GetIUnknownForObject(object o) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static void GetNativeVariantForObject(object obj, System.IntPtr pDstNativeVariant) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static void GetNativeVariantForObject<T>(T obj, System.IntPtr pDstNativeVariant) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static Object GetTypedObjectForIUnknown(System.IntPtr pUnk, System.Type t) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static object GetObjectForIUnknown(System.IntPtr pUnk) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static object GetObjectForNativeVariant(System.IntPtr pSrcNativeVariant) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static T GetObjectForNativeVariant<T>(System.IntPtr pSrcNativeVariant) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static object[] GetObjectsForNativeVariants(System.IntPtr aSrcNativeVariant, int cVars) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static T[] GetObjectsForNativeVariants<T>(System.IntPtr aSrcNativeVariant, int cVars) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static int GetStartComSlot(System.Type t) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static System.Type GetTypeFromCLSID(System.Guid clsid) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static string GetTypeInfoName(System.Runtime.InteropServices.ComTypes.ITypeInfo typeInfo) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static object GetUniqueObjectForIUnknown(System.IntPtr unknown) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static bool IsComObject(object o) @@ -159,22 +159,22 @@ namespace System.Runtime.InteropServices public static int QueryInterface(System.IntPtr pUnk, ref System.Guid iid, out System.IntPtr ppv) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static int Release(System.IntPtr pUnk) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static int ReleaseComObject(object o) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static void ZeroFreeBSTR(System.IntPtr s) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } } @@ -182,14 +182,14 @@ namespace System.Runtime.InteropServices { public DispatchWrapper(object obj) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public object WrappedObject { get { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } } } @@ -198,12 +198,12 @@ namespace System.Runtime.InteropServices { public static void Combine(object rcw, System.Guid iid, int dispid, System.Delegate d) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } public static System.Delegate Remove(object rcw, System.Guid iid, int dispid, System.Delegate d) { - throw new PlatformNotSupportedException(); + throw new PlatformNotSupportedException(SR.PlatformNotSupported_ComInterop); } } } |