UserCollection.Add メソッド
Adds the user specified by the user creation information parameter to the collection.
名前空間: Microsoft.SharePoint.Client
アセンブリ: Microsoft.SharePoint.Client.Silverlight (Microsoft.SharePoint.Client.Silverlight.dll 内); Microsoft.SharePoint.Client.Phone (Microsoft.SharePoint.Client.Phone.dll 内) Microsoft.SharePoint.Client (Microsoft.SharePoint.Client.dll 内)
構文
'宣言
Public Function Add ( _
parameters As UserCreationInformation _
) As User
'使用
Dim instance As UserCollection
Dim parameters As UserCreationInformation
Dim returnValue As User
returnValue = instance.Add(parameters)
public User Add(
UserCreationInformation parameters
)
パラメーター
parameters
型: Microsoft.SharePoint.Client.UserCreationInformationA UserCreationInformation object that contains information associated with the user.
It must not be null 参照 (Visual Basic のNothing ).
戻り値
型: Microsoft.SharePoint.Client.User
A User object that represents the user to add.
例外
例外 | 条件 |
---|---|
SPException | The user does not exist or the user is not unique. Error code: -2130575276. The collection is read-only. Error code: -1. |
SecurityException | The collection is the farm administrators group and the specified user is not an administrator. Error code: -1. |
UnauthorizedAccessException | The current user does not have permissions to perform the action. Error code: -2147024891. |