IRemoteArgumentEnumeratorContract Interface
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates the elements of a collection of RemoteArgument objects.
public interface class IRemoteArgumentEnumeratorContract : System::AddIn::Contract::IContract
public interface IRemoteArgumentEnumeratorContract : System.AddIn.Contract.IContract
type IRemoteArgumentEnumeratorContract = interface
interface IContract
Public Interface IRemoteArgumentEnumeratorContract
Implements IContract
- Derived
- Implements
Enumerators can be used to read the data in the collection, but they cannot be used to modify the underlying collection.
Initially, the enumerator is positioned before the first element in the collection. At this position, the return value of GetCurrent is undefined. Therefore, you must call MoveNext to advance the enumerator to the first element of the collection before calling GetCurrent.
GetCurrent returns the same object until MoveNext is called. MoveNext sets the return value of GetCurrent to the next element.
If MoveNext passes the end of the collection, the enumerator is positioned after the last element in the collection and MoveNext returns false
. When the enumerator is at this position, subsequent calls to MoveNext also return false
. If the last call to MoveNext returned false
, the return value of GetCurrent is undefined.
An enumerator remains valid as long as the collection remains unchanged. If changes are made to the collection, such as adding, modifying, or deleting elements, the enumerator is irrecoverably invalidated and its behavior is undefined.
Acquire |
Specifies that the contract is accessible to a client until the client revokes the contract. (Inherited from IContract) |
Get |
Returns the RemoteArgument in the collection at the current position of the enumerator. |
Get |
Returns a hash code for the IContract. (Inherited from IContract) |
Move |
Advances the enumerator to the next element of the collection. |
Query |
Returns a contract that is implemented by this contract. (Inherited from IContract) |
Remote |
Indicates whether the specified contract is equal to this IContract. (Inherited from IContract) |
Remote |
Returns a string representation of the current IContract. (Inherited from IContract) |
Reset() |
Sets the enumerator to its initial position, which is before the first element in the collection. |
Revoke |
Specifies that the contract is no longer accessible to a client. (Inherited from IContract) |
Produkt | Versions |
---|---|
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET er et åben kildekode projekt. Vælg et link for at give feedback: