WCF-Xtensions Class Reference for Mono
CanBuildChannelFactory<TChannel> Method (MessageStatisticsBindingElement)






The type of channel the channel factory creates.
The BindingContext for the factory.
Returns a value that indicates whether the current binding can build a channel factory for a specified type of channel and context.
Syntax
'Declaration
 
Public Overrides Function CanBuildChannelFactory(Of TChannel)( _
   ByVal context As System.ServiceModel.Channels.BindingContext _
) As System.Boolean
'Usage
 
Dim instance As MessageStatisticsBindingElement
Dim context As System.ServiceModel.Channels.BindingContext
Dim value As System.Boolean
 
value = instance.CanBuildChannelFactory(Of TChannel)(context)
public override System.bool CanBuildChannelFactory<TChannel>( 
   System.ServiceModel.Channels.BindingContext context
)
public function CanBuildChannelFactory( 
    context: System.ServiceModel.Channels.BindingContext
): System.Boolean; override; 
public override function CanBuildChannelFactory( 
   context : System.ServiceModel.Channels.BindingContext
) : System.boolean;
public: System.bool CanBuildChannelFactory<TChannel>( 
   System.ServiceModel.Channels.BindingContext* context
) override 
public:
System.bool CanBuildChannelFactorygeneric<typename TChannel>
( 
   System.ServiceModel.Channels.BindingContext^ context
) override 

Parameters

context
The BindingContext for the factory.

Type Parameters

TChannel
The type of channel the channel factory creates.

Return Value

true if the specified channel factory stack can be built on the service; otherwise, false
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MessageStatisticsBindingElement Class
MessageStatisticsBindingElement Members
Base Implementation in CanBuildChannelFactory<TChannel>

Send Feedback