![Collapse image Collapse image](collapse_all.gif)
![Expand Image Expand Image](expand_all.gif)
![](collapse_all.gif)
![](expand_all.gif)
![](dropdown.gif)
![](dropdownHover.gif)
![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
![]() ![]() |
Lidgren Network Library documentation |
NetConnection..::..Deny Method (String) |
NetConnection Class See Also Send Feedback |
Denies this connection; disconnecting it
Namespace: Lidgren.Network
Assembly: Lidgren.Network (in Lidgren.Network.dll) Version: 2012.1.7.0 (2012.1.7.0)
Syntax
C# |
---|
public void Deny( string reason ) |
Visual Basic |
---|
Public Sub Deny ( _ reason As String _ ) |
Visual C++ |
---|
public: void Deny( String^ reason ) |
Parameters
- reason
- Type: System..::..String
The stated reason for the disconnect, readable as a string in the StatusChanged message on the remote host