次の方法で共有


PropertyBuilder.AddOtherMethod Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Adds one of the methods other than property accessors that can be associated with a property.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
<SecuritySafeCriticalAttribute> _
Public Sub AddOtherMethod ( _
    mdBuilder As MethodBuilder _
)
[SecuritySafeCriticalAttribute]
public void AddOtherMethod(
    MethodBuilder mdBuilder
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

mdBuilder is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

CreateType has been called on the enclosing type.

Remarks

For more information about the other methods that can be associated with a property, see the Common Language Infrastructure (CLI) documentation. The documentation is available online; see ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.