CallContext.GetHeaders Method
.NET Framework 1.1
Returns the headers that are sent along with the method call.
[Visual Basic] Public Shared Function GetHeaders() As Header() [C#] public static Header[] GetHeaders(); [C++] public: static Header* GetHeaders() []; [JScript] public static function GetHeaders() : Header[];
Return Value
The headers that are sent along with the method call.
Exceptions
| Exception Type | Condition |
|---|---|
| SecurityException | The immediate caller does not have infrastructure permission. |
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- SecurityPermission for operating with infrastructure code. Demand value: SecurityAction.LinkDemand; Permission value: SecurityPermissionFlag.Infrastructure
See Also
CallContext Class | CallContext Members | System.Runtime.Remoting.Messaging Namespace