@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: Generate a new key pair with the specified size for strong name use !!!!C# Signature: /// <summary> /// Generate a new key pair with the specified key size for strong name use /// </summary> /// <param name="wszKeyContainer">desired key container name</param> /// <param name="dwFlags">flags</param> /// <param name="dwKeySize">desired key size</param> /// <param name="ppbKeyBlob">[out] generated public / private key blob</param> /// <param name="pcbKeyBlob">[out] size of the generated blob</param> /// <returns>true if the key was generated, false if there was an error</returns> [DllImport("mscoree.dll")] extern static bool StrongNameKeyGenEx([MarshalAs(UnmanagedType.LPWStr)] string wszKeyContainer, StrongNameKeyGenFlags dwFlags, int dwKeySize, [Out]out IntPtr ppbKeyBlob, [Out]out long pcbKeyBlob); !!!!User-Defined Types: StrongNameKeyGenFlags !!!!Notes: This strong name API has been moved to mscoree.dll for Whidbey. It is not available in the v1.0 or v1.1 versions of the framework. !!!!Sample Code: For a sample of generating a key, and some more documentation on this function, see Shawn Farkas' blog: http://blogs.msdn.com/shawnfa/archive/2004/07/09/178902.aspx Documentation: StrongNameKeyGenEx@msdn on MSDN
Edit mscorsn.StrongNam...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.