共用方式為


SPTrustedProviderCollection<T>.Add method

將信任的提供者新增至集合

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Overrides Function Add ( _
    newObj As T _
) As T
'用途
Dim instance As SPTrustedProviderCollection
Dim newObj As T
Dim returnValue As T

returnValue = instance.Add(newObj)
public override T Add(
    T newObj
)

參數

  • newObj
    Type: T

    要新增至集合中的信任提供者。

傳回值

Type: T
新增信任的提供者。

Exceptions

Exception Condition
ArgumentException

集合中已經存在newObj或受信任的提供者的名稱超過 50 個字元。

備註

此方法將信任的提供者新增至集合,並傳回已新增信任的提供者。

請參閱

參照

SPTrustedProviderCollection<T> class

SPTrustedProviderCollection<T> members

Microsoft.SharePoint.Administration.Claims namespace