从集合中检索具有指定的提供程序名称的提供程序。
命名空间: Microsoft.SharePoint.Administration.Claims
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function GetProviderByName ( _
providerName As String _
) As T
用法
Dim instance As SPTrustedProviderCollection
Dim providerName As String
Dim returnValue As T
returnValue = instance.GetProviderByName(providerName)
public T GetProviderByName(
string providerName
)
参数
providerName
类型:System.String要从集合中检索的提供程序名称。
返回值
类型:T
从providerName集合中检索到的提供程序。
备注
此方法从集合检索具有providerName的提供程序。
如果它找不到具有该名称的提供程序,此方法会返回 null 。
另请参阅
引用
SPTrustedProviderCollection<T> 类