CodeParameterDeclarationExpressionCollection 클래스
정의
CodeParameterDeclarationExpression 개체의 컬렉션을 나타냅니다.Represents a collection of CodeParameterDeclarationExpression objects.
public ref class CodeParameterDeclarationExpressionCollection : System::Collections::CollectionBase
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Serializable]
public class CodeParameterDeclarationExpressionCollection : System.Collections.CollectionBase
type CodeParameterDeclarationExpressionCollection = class
inherit CollectionBase
Public Class CodeParameterDeclarationExpressionCollection
Inherits CollectionBase
- 상속
- 특성
예제
다음 예제에서는 사용 하는 방법에 설명 합니다 CodeParameterDeclarationExpressionCollection 메서드 클래스입니다.The following example demonstrates how to use the CodeParameterDeclarationExpressionCollection class methods. 예제에서는 클래스의 새 인스턴스를 만듭니다 및 메서드를 사용 하 여 컬렉션에 문을 추가, 해당 인덱스를 반환 하 고 추가 또는 특정 인덱스 위치에서 특성을 제거 합니다.The example creates a new instance of the class and uses the methods to add statements to the collection, return their index, and add or remove attributes at a specific index point.
// Creates an empty CodeParameterDeclarationExpressionCollection.
CodeParameterDeclarationExpressionCollection^ collection = gcnew CodeParameterDeclarationExpressionCollection;
// Adds a CodeParameterDeclarationExpression to the collection.
collection->Add( gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) );
// Adds an array of CodeParameterDeclarationExpression objects
// to the collection.
array<CodeParameterDeclarationExpression^>^parameters = {gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ),gcnew CodeParameterDeclarationExpression( bool::typeid,"testBoolArgument" )};
collection->AddRange( parameters );
// Adds a collection of CodeParameterDeclarationExpression objects
// to the collection.
CodeParameterDeclarationExpressionCollection^ parametersCollection = gcnew CodeParameterDeclarationExpressionCollection;
parametersCollection->Add( gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) );
parametersCollection->Add( gcnew CodeParameterDeclarationExpression( bool::typeid,"testBoolArgument" ) );
collection->AddRange( parametersCollection );
// Tests for the presence of a CodeParameterDeclarationExpression
// in the collection, and retrieves its index if it is found.
CodeParameterDeclarationExpression^ testParameter = gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" );
int itemIndex = -1;
if ( collection->Contains( testParameter ) )
itemIndex = collection->IndexOf( testParameter );
// Copies the contents of the collection beginning at index 0 to the specified CodeParameterDeclarationExpression array.
// 'parameters' is a CodeParameterDeclarationExpression array.
collection->CopyTo( parameters, 0 );
// Retrieves the count of the items in the collection.
int collectionCount = collection->Count;
// Inserts a CodeParameterDeclarationExpression at index 0
// of the collection.
collection->Insert( 0, gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" ) );
// Removes the specified CodeParameterDeclarationExpression
// from the collection.
CodeParameterDeclarationExpression^ parameter = gcnew CodeParameterDeclarationExpression( int::typeid,"testIntArgument" );
collection->Remove( parameter );
// Removes the CodeParameterDeclarationExpression at index 0.
collection->RemoveAt( 0 );
// Creates an empty CodeParameterDeclarationExpressionCollection.
CodeParameterDeclarationExpressionCollection collection = new CodeParameterDeclarationExpressionCollection();
// Adds a CodeParameterDeclarationExpression to the collection.
collection.Add( new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
// Adds an array of CodeParameterDeclarationExpression objects
// to the collection.
CodeParameterDeclarationExpression[] parameters = { new CodeParameterDeclarationExpression(typeof(int), "testIntArgument"), new CodeParameterDeclarationExpression(typeof(bool), "testBoolArgument") };
collection.AddRange( parameters );
// Adds a collection of CodeParameterDeclarationExpression objects
// to the collection.
CodeParameterDeclarationExpressionCollection parametersCollection = new CodeParameterDeclarationExpressionCollection();
parametersCollection.Add( new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
parametersCollection.Add( new CodeParameterDeclarationExpression(typeof(bool), "testBoolArgument") );
collection.AddRange( parametersCollection );
// Tests for the presence of a CodeParameterDeclarationExpression
// in the collection, and retrieves its index if it is found.
CodeParameterDeclarationExpression testParameter = new CodeParameterDeclarationExpression(typeof(int), "testIntArgument");
int itemIndex = -1;
if( collection.Contains( testParameter ) )
itemIndex = collection.IndexOf( testParameter );
// Copies the contents of the collection beginning at index 0 to the specified CodeParameterDeclarationExpression array.
// 'parameters' is a CodeParameterDeclarationExpression array.
collection.CopyTo( parameters, 0 );
// Retrieves the count of the items in the collection.
int collectionCount = collection.Count;
// Inserts a CodeParameterDeclarationExpression at index 0
// of the collection.
collection.Insert( 0, new CodeParameterDeclarationExpression(typeof(int), "testIntArgument") );
// Removes the specified CodeParameterDeclarationExpression
// from the collection.
CodeParameterDeclarationExpression parameter = new CodeParameterDeclarationExpression(typeof(int), "testIntArgument");
collection.Remove( parameter );
// Removes the CodeParameterDeclarationExpression at index 0.
collection.RemoveAt(0);
' Creates an empty CodeParameterDeclarationExpressionCollection.
Dim collection As New CodeParameterDeclarationExpressionCollection()
' Adds a CodeParameterDeclarationExpression to the collection.
collection.Add(New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))
' Adds an array of CodeParameterDeclarationExpression objects
' to the collection.
Dim parameters As CodeParameterDeclarationExpression() = {New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"), New CodeParameterDeclarationExpression(GetType(Boolean), "testBoolArgument")}
collection.AddRange(parameters)
' Adds a collection of CodeParameterDeclarationExpression
' objects to the collection.
Dim parametersCollection As New CodeParameterDeclarationExpressionCollection()
parametersCollection.Add(New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))
parametersCollection.Add(New CodeParameterDeclarationExpression(GetType(Boolean), "testBoolArgument"))
collection.AddRange(parametersCollection)
' Tests for the presence of a CodeParameterDeclarationExpression
' in the collection, and retrieves its index if it is found.
Dim testParameter As New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument")
Dim itemIndex As Integer = -1
If collection.Contains(testParameter) Then
itemIndex = collection.IndexOf(testParameter)
End If
' Copies the contents of the collection beginning at index 0 to the specified CodeParameterDeclarationExpression array.
' 'parameters' is a CodeParameterDeclarationExpression array.
collection.CopyTo(parameters, 0)
' Retrieves the count of the items in the collection.
Dim collectionCount As Integer = collection.Count
' Inserts a CodeParameterDeclarationExpression at index 0
' of the collection.
collection.Insert(0, New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument"))
' Removes the specified CodeParameterDeclarationExpression
' from the collection.
Dim parameter As New CodeParameterDeclarationExpression(GetType(Integer), "testIntArgument")
collection.Remove(parameter)
' Removes the CodeParameterDeclarationExpression at index 0.
collection.RemoveAt(0)
설명
CodeParameterDeclarationExpressionCollection 클래스는 CodeParameterDeclarationExpression 개체 집합을 저장하는 데 사용할 수 있는 간단한 컬렉션 개체를 제공합니다.The CodeParameterDeclarationExpressionCollection class provides a simple collection object that can be used to store a set of CodeParameterDeclarationExpression objects.
생성자
CodeParameterDeclarationExpressionCollection() |
CodeParameterDeclarationExpressionCollection 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the CodeParameterDeclarationExpressionCollection class. |
CodeParameterDeclarationExpressionCollection(CodeParameterDeclarationExpression[]) |
CodeParameterDeclarationExpressionCollection 개체의 지정된 배열을 포함하는 CodeParameterDeclarationExpression 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the CodeParameterDeclarationExpressionCollection class containing the specified array of CodeParameterDeclarationExpression objects. |
CodeParameterDeclarationExpressionCollection(CodeParameterDeclarationExpressionCollection) |
지정된 소스 컬렉션의 요소를 포함하는 CodeParameterDeclarationExpressionCollection 클래스의 새 인스턴스를 초기화합니다.Initializes a new instance of the CodeParameterDeclarationExpressionCollection class containing the elements of the specified source collection. |
속성
Capacity |
CollectionBase에 포함될 수 있는 요소의 수를 가져오거나 설정합니다.Gets or sets the number of elements that the CollectionBase can contain. (다음에서 상속됨 CollectionBase) |
Count |
에 포함 된 요소의 수를 가져옵니다는 CollectionBase 인스턴스.Gets the number of elements contained in the CollectionBase instance. 이 속성은 재정의할 수 없습니다.This property cannot be overridden. (다음에서 상속됨 CollectionBase) |
InnerList |
가져옵니다는 ArrayList 의 요소 목록을 포함 하는 CollectionBase 인스턴스.Gets an ArrayList containing the list of elements in the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
Item[Int32] |
컬렉션의 지정된 인덱스에 있는 CodeParameterDeclarationExpression를 가져오거나 설정합니다.Gets or sets the CodeParameterDeclarationExpression at the specified index in the collection. |
List |
가져옵니다는 IList 의 요소 목록을 포함 하는 CollectionBase 인스턴스.Gets an IList containing the list of elements in the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
메서드
Add(CodeParameterDeclarationExpression) |
지정된 CodeParameterDeclarationExpression를 컬렉션에 추가합니다.Adds the specified CodeParameterDeclarationExpression to the collection. |
AddRange(CodeParameterDeclarationExpression[]) |
지정된 배열의 요소를 컬렉션의 끝에 복사합니다.Copies the elements of the specified array to the end of the collection. |
AddRange(CodeParameterDeclarationExpressionCollection) |
다른 CodeParameterDeclarationExpressionCollection의 내용을 컬렉션의 끝에 추가합니다.Adds the contents of another CodeParameterDeclarationExpressionCollection to the end of the collection. |
Clear() |
개체를 모두 제거 된 CollectionBase 인스턴스.Removes all objects from the CollectionBase instance. 이 메서드는 재정의할 수 없습니다.This method cannot be overridden. (다음에서 상속됨 CollectionBase) |
Contains(CodeParameterDeclarationExpression) |
컬렉션에 지정한 CodeParameterDeclarationExpression가 있는지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the collection contains the specified CodeParameterDeclarationExpression. |
CopyTo(CodeParameterDeclarationExpression[], Int32) |
지정한 인덱스에서 시작하는 1차원 Array 인스턴스에 컬렉션 개체를 복사합니다.Copies the collection objects to a one-dimensional Array instance beginning at the specified index. |
Equals(Object) |
지정한 개체와 현재 개체가 같은지 여부를 확인합니다.Determines whether the specified object is equal to the current object. (다음에서 상속됨 Object) |
GetEnumerator() |
반복 하는 열거자를 반환 합니다 CollectionBase 인스턴스.Returns an enumerator that iterates through the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
GetHashCode() |
기본 해시 함수로 작동합니다.Serves as the default hash function. (다음에서 상속됨 Object) |
GetType() |
현재 인스턴스의 Type을 가져옵니다.Gets the Type of the current instance. (다음에서 상속됨 Object) |
IndexOf(CodeParameterDeclarationExpression) |
지정한 CodeParameterDeclarationExpression의 컬렉션에 인덱스가 있는 경우 해당 인덱스를 가져옵니다.Gets the index in the collection of the specified CodeParameterDeclarationExpression, if it exists in the collection. |
Insert(Int32, CodeParameterDeclarationExpression) |
지정된 CodeParameterDeclarationExpression를 컬렉션의 지정된 인덱스에 삽입합니다.Inserts the specified CodeParameterDeclarationExpression into the collection at the specified index. |
MemberwiseClone() |
현재 Object의 단순 복사본을 만듭니다.Creates a shallow copy of the current Object. (다음에서 상속됨 Object) |
OnClear() |
CollectionBase 인스턴스의 콘텐츠를 지운 후에 추가로 사용자 지정 프로세스를 수행합니다.Performs additional custom processes when clearing the contents of the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnClearComplete() |
내용을 지운 후 사용자 지정 프로세스를 추가로 수행 합니다 CollectionBase 인스턴스.Performs additional custom processes after clearing the contents of the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnInsert(Int32, Object) |
새 요소를 삽입 하기 전에 추가로 사용자 지정 프로세스를 수행 합니다 CollectionBase 인스턴스.Performs additional custom processes before inserting a new element into the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnInsertComplete(Int32, Object) |
새 요소를 삽입 한 후 추가 사용자 지정 프로세스를 수행 합니다 CollectionBase 인스턴스.Performs additional custom processes after inserting a new element into the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnRemove(Int32, Object) |
요소를 제거 하는 경우 추가 사용자 지정 프로세스를 수행 합니다 CollectionBase 인스턴스.Performs additional custom processes when removing an element from the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnRemoveComplete(Int32, Object) |
요소를 제거한 후 추가 사용자 지정 프로세스를 수행 합니다 CollectionBase 인스턴스.Performs additional custom processes after removing an element from the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnSet(Int32, Object, Object) |
에 값을 설정 하기 전에 추가로 사용자 지정 프로세스를 수행 합니다 CollectionBase 인스턴스.Performs additional custom processes before setting a value in the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnSetComplete(Int32, Object, Object) |
값을 설정한 후 추가 사용자 지정 프로세스를 수행 합니다 CollectionBase 인스턴스.Performs additional custom processes after setting a value in the CollectionBase instance. (다음에서 상속됨 CollectionBase) |
OnValidate(Object) |
값 유효성을 검사할 때 추가로 사용자 지정 프로세스를 수행 합니다.Performs additional custom processes when validating a value. (다음에서 상속됨 CollectionBase) |
Remove(CodeParameterDeclarationExpression) |
지정된 CodeParameterDeclarationExpression를 컬렉션에서 제거합니다.Removes the specified CodeParameterDeclarationExpression from the collection. |
RemoveAt(Int32) |
지정된 된 인덱스에서 요소를 제거 합니다 CollectionBase 인스턴스.Removes the element at the specified index of the CollectionBase instance. 이 메서드는 재정의할 수 없습니다.This method is not overridable. (다음에서 상속됨 CollectionBase) |
ToString() |
현재 개체를 나타내는 문자열을 반환합니다.Returns a string that represents the current object. (다음에서 상속됨 Object) |
명시적 인터페이스 구현
ICollection.CopyTo(Array, Int32) |
대상 배열의 지정된 인덱스에서 시작하여 전체 CollectionBase을 호환되는 1차원 Array에 복사합니다.Copies the entire CollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array. (다음에서 상속됨 CollectionBase) |
ICollection.IsSynchronized |
CollectionBase에 대한 액세스가 동기화되어 스레드로부터 안전하게 보호되는지를 나타내는 값을 가져옵니다.Gets a value indicating whether access to the CollectionBase is synchronized (thread safe). (다음에서 상속됨 CollectionBase) |
ICollection.SyncRoot |
CollectionBase에 대한 액세스를 동기화하는 데 사용할 수 있는 개체를 가져옵니다.Gets an object that can be used to synchronize access to the CollectionBase. (다음에서 상속됨 CollectionBase) |
IList.Add(Object) |
개체를 CollectionBase의 끝 부분에 추가합니다.Adds an object to the end of the CollectionBase. (다음에서 상속됨 CollectionBase) |
IList.Contains(Object) |
CollectionBase에 특정 요소가 들어 있는지 여부를 확인합니다.Determines whether the CollectionBase contains a specific element. (다음에서 상속됨 CollectionBase) |
IList.IndexOf(Object) |
지정한 Object를 검색하고, 전체 CollectionBase 내에서 처음 나오는 0부터 시작하는 인덱스를 반환합니다.Searches for the specified Object and returns the zero-based index of the first occurrence within the entire CollectionBase. (다음에서 상속됨 CollectionBase) |
IList.Insert(Int32, Object) |
CollectionBase의 지정된 인덱스에 요소를 삽입합니다.Inserts an element into the CollectionBase at the specified index. (다음에서 상속됨 CollectionBase) |
IList.IsFixedSize |
CollectionBase의 크기가 고정되어 있는지를 나타내는 값을 가져옵니다.Gets a value indicating whether the CollectionBase has a fixed size. (다음에서 상속됨 CollectionBase) |
IList.IsReadOnly |
CollectionBase가 읽기 전용인지 여부를 나타내는 값을 가져옵니다.Gets a value indicating whether the CollectionBase is read-only. (다음에서 상속됨 CollectionBase) |
IList.Item[Int32] |
지정한 인덱스에 있는 요소를 가져오거나 설정합니다.Gets or sets the element at the specified index. (다음에서 상속됨 CollectionBase) |
IList.Remove(Object) |
CollectionBase에서 맨 처음 발견되는 특정 개체를 제거합니다.Removes the first occurrence of a specific object from the CollectionBase. (다음에서 상속됨 CollectionBase) |
확장 메서드
Cast<TResult>(IEnumerable) |
IEnumerable의 요소를 지정된 형식으로 캐스팅합니다.Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
지정된 형식에 따라 IEnumerable의 요소를 필터링합니다.Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
쿼리를 병렬화할 수 있도록 합니다.Enables parallelization of a query. |
AsQueryable(IEnumerable) |
IEnumerable을 IQueryable로 변환합니다.Converts an IEnumerable to an IQueryable. |