VkNet.Categories.AccountCategory.GetBanned C# (CSharp) Method

GetBanned() private method

private GetBanned ( int &total, int offset = null, int count = null ) : ReadOnlyCollection
total int
offset int
count int
return ReadOnlyCollection
        public ReadOnlyCollection<User> GetBanned(out int total, int? offset = null, int? count = null)
        {
            var response = GetBanned(offset, count);

            total = Convert.ToInt32(response.TotalCount);

            return response.ToReadOnlyCollection();
        }

Same methods

AccountCategory::GetBanned ( int offset = null, int count = null ) : VkCollection

Usage Example

Example #1
0
        public void GetBanned_IncorrectParameters_ThrowArgumentException()
        {
            var account = new AccountCategory(new VkApi { AccessToken = "token", Browser = null });

            int buf;
            Assert.That(() => account.GetBanned(out buf, offset: -1), Throws.InstanceOf<ArgumentException>().And.Property("ParamName").EqualTo("offset"));
            Assert.That(() => account.GetBanned(out buf, count: -1), Throws.InstanceOf<ArgumentException>().And.Property("ParamName").EqualTo("count"));
        }
All Usage Examples Of VkNet.Categories.AccountCategory::GetBanned