SPGroupCollection.GetByID Method
Returns a group from the collection based on the member ID of the group.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
[ClientCallableMethodAttribute(Name = "GetById", CacheReturnValue = true, ReturnObjectIdentity = true)] [ClientCallableExceptionConstraintAttribute(FixedId = "System.UnauthorizedAccessException$-2147024891", ErrorType = typeof(UnauthorizedAccessException), ErrorCode = , Condition = "Access is denied.")] [ClientCallableExceptionConstraintAttribute(FixedId = "Microsoft.SharePoint.SPException$-2146232832", ErrorType = typeof(SPException), ErrorCode = , Condition = "Group cannot be found.")] [ClientCallableExceptionConstraintAttribute(FixedId = "1", ErrorType = typeof(ArgumentException), Condition = "Unknown/incorrect group collection type to be initialized.", ErrorCode = )] public SPGroup GetByID( int id )
Parameters
- id
- Type: System.Int32
A 32-bit integer that specifies the member ID.