System.Runtime.InteropServices.Expando.IExpando Interface

Assembly: Mscorlib.dll
Namespace: System.Runtime.InteropServices.Expando
Summary
Enables modification of objects by adding and removing members, represented by MemberInfo objects.
C# Syntax:
public interface IExpando : IReflect
See also:
System.Runtime.InteropServices.Expando Namespace

System.Runtime.InteropServices.Expando.IExpando Member List:

Public Methods
AddField Adds the named field to the Reflection object.
AddMethod Adds the named method to the Reflection object.
AddProperty Adds the named property to the Reflection object.
RemoveMember Removes the specified member.

Hierarchy:


System.Runtime.InteropServices.Expando.IExpando Member Details

Method: AddField(
   string name
)
Summary
Adds the named field to the Reflection object.
C# Syntax:
FieldInfo AddField(
   string name
);
Parameters:

name

The name of the field.

Return Value:
A FieldInfo object representing the added field.
Exceptions
Exception Type Condition
NotSupportedException The IExpando object does not support this method.

Return to top


Method: AddMethod(
   string name,
   Delegate method
)
Summary
Adds the named method to the Reflection object.
C# Syntax:
MethodInfo AddMethod(
   string name,
   Delegate method
);
Parameters:

name

The name of the method.

method

The delegate to the method.

Return Value:
A MethodInfo object representing the added method.
Exceptions
Exception Type Condition
NotSupportedException The IExpando object does not support this method.

Return to top


Method: AddProperty(
   string name
)
Summary
Adds the named property to the Reflection object.
C# Syntax:
PropertyInfo AddProperty(
   string name
);
Parameters:

name

The name of the property.

Return Value:
A PropertyInfo object representing the added property.
Exceptions
Exception Type Condition
NotSupportedException The IExpando object does not support this method.

Return to top


Method: RemoveMember(
   MemberInfo m
)
Summary
Removes the specified member.
C# Syntax:
void RemoveMember(
   MemberInfo m
);
Parameters:

m

The member to remove.

Exceptions
Exception Type Condition
NotSupportedException The IExpando object does not support this method.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.