Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

NetSendAppender.NetMessageBufferSend�Method�

Sends a buffer of information to a registered message alias.

[Visual�Basic]
Protected�Shared�Function�NetMessageBufferSend( _
���ByVal serverName�As�String,�_
���ByVal msgName�As�String,�_
���ByVal fromName�As�String,�_
���ByVal buffer�As�String,�_
���ByVal bufferSize�As�Integer�_
)�As�Integer
[C#]
protected�static�int�NetMessageBufferSend(
���stringserverName,
���stringmsgName,
���stringfromName,
���stringbuffer,
���intbufferSize
);

Parameters

serverName
The DNS or NetBIOS name of the server on which the function is to execute.
msgName
The message alias to which the message buffer should be sent
fromName
The originator of the message.
buffer
The message text.
bufferSize
The length, in bytes, of the message text.

Return Value

If the function succeeds, the return value is zero.

Remarks

The following restrictions apply for sending network messages:

Platform Requirements
Windows NT

No special group membership is required to send a network message.

Admin, Accounts, Print, or Server Operator group membership is required to successfully send a network message on a remote server.

Windows 2000 or later

If you send a message on a domain controller that is running Active Directory, access is allowed or denied based on the access control list (ACL) for the securable object. The default ACL permits only Domain Admins and Account Operators to send a network message.

On a member server or workstation, only Administrators and Server Operators can send a network message.

For more information see Security Requirements for the Network Management Functions.

See Also

NetSendAppender Class | log4net.Appender Namespace