HashAlgorithmProvider.OpenAlgorithm(String) 方法    
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建 HashAlgorithmProvider 对象并打开要使用的指定算法。
public:
 static HashAlgorithmProvider ^ OpenAlgorithm(Platform::String ^ algorithm);
	 static HashAlgorithmProvider OpenAlgorithm(winrt::hstring const& algorithm);
	public static HashAlgorithmProvider OpenAlgorithm(string algorithm);
	function openAlgorithm(algorithm)
	Public Shared Function OpenAlgorithm (algorithm As String) As HashAlgorithmProvider
	参数
- algorithm
 - 
				
				String
Platform::String
winrt::hstring
 
算法名称。
返回
表示实现哈希算法的提供程序。
注解
支持以下哈希算法名称:
- HashAlgorithmNames.Md5
 - HashAlgorithmNames.Sha1
 - HashAlgorithmNames.Sha256
 - HashAlgorithmNames.Sha384
 - HashAlgorithmNames.Sha512