This documentation is archived and is not being maintained.
LogicalMethodInfo.IsEndMethod Method
.NET Framework 1.1
Returns a value indicating whether the method passed in represents an End method of an asynchronous invocation.
[Visual Basic] Public Shared Function IsEndMethod( _ ByVal methodInfo As MethodInfo _ ) As Boolean [C#] public static bool IsEndMethod( MethodInfo methodInfo ); [C++] public: static bool IsEndMethod( MethodInfo* methodInfo ); [JScript] public static function IsEndMethod( methodInfo : MethodInfo ) : Boolean;
Parameters
- methodInfo
- The MethodInfo that might be an End method of an asynchronous invocation.
Return Value
true if the methodInfo parameter is an End method of an asynchronous invocation; otherwise, false.
Example
[Visual Basic] ' 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. Dim myType As Type = GetType(MyMath.MyMath) Dim myBeginMethod As MethodInfo = myType.GetMethod("BeginAdd") Dim myEndMethod As MethodInfo = myType.GetMethod("EndAdd") Dim myMethod As MethodInfo = myType.GetMethod("Add") Console.WriteLine(("Is 'BeginAdd' a Begin Method : " & _ LogicalMethodInfo.IsBeginMethod(myBeginMethod).ToString())) Console.WriteLine(("Is 'Add' a Begin Method : " & _ LogicalMethodInfo.IsBeginMethod(myMethod).ToString())) Console.WriteLine(("Is 'EndAdd' an End Method : " & _ LogicalMethodInfo.IsEndMethod(myEndMethod).ToString())) [C#] // 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("BeginAdd"); MethodInfo myEndMethod = myType.GetMethod("EndAdd"); MethodInfo myMethod = myType.GetMethod("Add"); Console.WriteLine("Is 'BeginAdd' a Begin Method : " + LogicalMethodInfo.IsBeginMethod(myBeginMethod).ToString()); Console.WriteLine("Is 'Add' a Begin Method : " + LogicalMethodInfo.IsBeginMethod(myMethod).ToString()); Console.WriteLine("Is 'EndAdd' an End Method : " + LogicalMethodInfo.IsEndMethod(myEndMethod).ToString()); [C++] // 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)));
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
LogicalMethodInfo Class | LogicalMethodInfo Members | System.Web.Services.Protocols Namespace
Show: