DotMSN |

# P2PMessageSession.GetHandler Method

Searches through all handlers and returns the first object with the specified type, or null if not found.

[Visual Basic]
Public Function GetHandler( _
ByVal handlerType As Type _
) As Object
[C#]
public object GetHandler(
Type handlerType
);

#### Parameters

handlerType

#### Return Value

#### See Also

P2PMessageSession Class | XihSolutions.DotMSN.DataTransfer Namespace