Class ResourceNameList<TName> (4.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
public sealed class ResourceNameList<TName> : IList<TName>, ICollection<TName>, IEnumerable<TName>, IEnumerable where TName : class, IResourceName
A list of resource names of a specific type, that delegates all operations to an
underlying list of string-based resource names.
Inheritance
object >
ResourceNameList<TName>
Namespace
Google.Api.Gax
Assembly
Google.Api.Gax.dll
Type Parameter |
Name |
Description |
TName |
The type of the resource name contained in this list.
|
Constructors
ResourceNameList(IList<string>, Func<string, TName>)
public ResourceNameList(IList<string> underlyingList, Func<string, TName> stringToName)
Properties
Count
public int Count { get; }
Property Value |
Type |
Description |
int |
|
IsReadOnly
public bool IsReadOnly { get; }
Property Value |
Type |
Description |
bool |
|
this[int]
public TName this[int index] { get; set; }
Parameter |
Name |
Description |
index |
int
|
Property Value |
Type |
Description |
TName |
|
Methods
Add(IEnumerable<TName>)
public void Add(IEnumerable<TName> items)
Adds all items to this list.
Parameter |
Name |
Description |
items |
IEnumerable
The items to add to this list.
|
Add(TName)
public void Add(TName item)
Parameter |
Name |
Description |
item |
TName
|
Clear()
Contains(TName)
public bool Contains(TName item)
Parameter |
Name |
Description |
item |
TName
|
Returns |
Type |
Description |
bool |
|
CopyTo(TName[], int)
public void CopyTo(TName[] array, int arrayIndex)
Parameters |
Name |
Description |
array |
|
arrayIndex |
int
|
GetEnumerator()
public IEnumerator<TName> GetEnumerator()
IndexOf(TName)
public int IndexOf(TName item)
Parameter |
Name |
Description |
item |
TName
|
Returns |
Type |
Description |
int |
|
Insert(int, TName)
public void Insert(int index, TName item)
Parameters |
Name |
Description |
index |
int
|
item |
TName
|
Remove(TName)
public bool Remove(TName item)
Parameter |
Name |
Description |
item |
TName
|
Returns |
Type |
Description |
bool |
|
RemoveAt(int)
public void RemoveAt(int index)
Parameter |
Name |
Description |
index |
int
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-21 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"lastModified": "Last updated 2024-08-21 UTC.",
"confidential": False
}