This documentation is archived and is not being maintained.
LogicalMethodInfo::IsEndMethod Method
Visual Studio 2008
Returns a value indicating whether the method passed in represents an End method of an asynchronous invocation.
Assembly: System.Web.Services (in System.Web.Services.dll)
Parameters
- methodInfo
- Type: System.Reflection::MethodInfo
The MethodInfo that might be an End method of an asynchronous invocation.
Return Value
Type: System::Booleantrue if the methodInfo parameter is an End method of an asynchronous invocation; otherwise, false.
// Get the type for the proxy class MyMath Web service. // Note: The MyMath class is a proxy class generated by the Wsdl.exe // utility for the Math Web service. This class can also be found in // the SoapHttpClientProtocol class example. Type^ myType = MyMath::MyMath::typeid; MethodInfo^ myBeginMethod = myType->GetMethod( "BeginAdd" ); MethodInfo^ myEndMethod = myType->GetMethod( "EndAdd" ); MethodInfo^ myMethod = myType->GetMethod( "Add" ); Console::WriteLine( "Is 'BeginAdd' a Begin Method : {0}", LogicalMethodInfo::IsBeginMethod( myBeginMethod ) ); Console::WriteLine( "Is 'Add' a Begin Method : {0}", LogicalMethodInfo::IsBeginMethod( myMethod ) ); Console::WriteLine( "Is 'EndAdd' an End Method : {0}", LogicalMethodInfo::IsEndMethod( myEndMethod ) );
// Get the type for the proxy class MyMath Web service.
// Note: The MyMath class is a proxy class generated by the Wsdl.exe
// utility for the Math Web service. This class can also be found in
// the SoapHttpClientProtocol class example.
Type* myType = __typeof(MyMath::MyMath);
MethodInfo* myBeginMethod = myType->GetMethod(S"BeginAdd");
MethodInfo* myEndMethod = myType->GetMethod(S"EndAdd");
MethodInfo* myMethod = myType->GetMethod(S"Add");
Console::WriteLine(S"Is 'BeginAdd' a Begin Method : {0}", __box(LogicalMethodInfo::IsBeginMethod(myBeginMethod)));
Console::WriteLine(S"Is 'Add' a Begin Method : {0}", __box(LogicalMethodInfo::IsBeginMethod(myMethod)));
Console::WriteLine(S"Is 'EndAdd' an End Method : {0}", __box(LogicalMethodInfo::IsEndMethod(myEndMethod)));
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: