Export (0) Print
Expand All

How to: Set the authenticationMode Configuration Property 

This example code illustrates how to programmatically set the authenticationMode configuration property.


// Specify server channel properties.
IDictionary dict = new Hashtable();
dict["port"] = 9090;
dict["authenticationMode"] = "IdentifyCallers";
// Set up a server channel.
TcpServerChannel serverChannel = new TcpServerChannel(dict,null);
//Create an HttpChannel object and register the channel

Compiling the Code

This example requires:

See Also

© 2014 Microsoft