VkNet.Categories.GroupsCategory.GetById C# (CSharp) Méthode

GetById() private méthode

private GetById ( long gid, GroupsFields fields = null ) : Model.Group
gid long
fields GroupsFields
Résultat Model.Group
        public Group GetById(long gid, GroupsFields fields = null)
        {
            VkErrors.ThrowIfNumberIsNegative(() => gid);
            return GetById(new List<string>(), gid.ToString(), fields).FirstOrDefault();
        }

Same methods

GroupsCategory::GetById ( string gid, GroupsFields fields = null ) : Model.Group
GroupsCategory::GetById ( IEnumerable gids, GroupsFields fields = null ) : ReadOnlyCollection
GroupsCategory::GetById ( IEnumerable gids, GroupsFields fields = null ) : ReadOnlyCollection
GroupsCategory::GetById ( IEnumerable groupIds, string groupId, GroupsFields fields, bool skipAuthorization = false ) : ReadOnlyCollection

Usage Example

 public void GetById_Multiple_AccessTokenInvalid_ThrowAccessTokenInvalidException()
 {
     var groups = new GroupsCategory(new VkApi());
     Assert.That(() => groups.GetById(2), Throws.InstanceOf<AccessTokenInvalidException>());
 }
All Usage Examples Of VkNet.Categories.GroupsCategory::GetById