SoapFilter.GetBehavior Generic Method
Gets a custom interface for the SOAP filter.
Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Public Class SomeType1
End Class
Dim returnValue As SomeType1
Dim soapFilter1 As SoapFilter
returnValue = soapFilter1.GetBehavior(Of SomeType1)()
Syntax
'Declaration
Public Overridable Function GetBehavior(Of T)() As T
public virtual T GetBehavior<T>();
public:
generic<typename T>
virtual T GetBehavior();
public virtual T GetBehavior<T>();
JScript does not support Generics.
Return Value
The custom interface that is specified in the type parameter for the SOAP filter when the SOAP filter implements the interface; otherwise null.
Remarks
Use the GetOutputBehavior or GetInputBehavior methods to obtain a custom interface for a SOAP filter. For example, the SecureConversationClientSendSecurityFilter outgoing SOAP filter supports the ISecureConversationEvents interface that allows an application to subscribe to an event that is raised when a secure conversation is established by the SOAP filter. Use the GetOutputBehavior method to get an instance that implements the ISecureConversationEvents interface to which an event handler can be added for the SecureConversationCreated event.
The GetOutputBehavior and GetInputBehavior methods call the GetBehavior method on outgoing and incoming SOAP filters, respectively and return an instance of the custom interface from the first filter that does not return null.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
SoapFilter Class
SoapFilter Members
Microsoft.Web.Services3 Namespace