Name

InAttribute

Synopsis

This attribute is attached to a parameter to marshal it as an in parameter. By default, parameters are marshaled based on their modifiers, so this attribute is only necessary if you want to override the defaults. Parameters with no modifiers are marshaled as [In]. Parameters with the ref modifier are marshaled as [In, Out]. Parameters with the out modifier are marshaled as [Out].

public sealed class InAttribute : Attribute {
// Public Constructors
   public InAttribute( );
}

Hierarchy

System.Object System.Attribute InAttribute

Valid On

Parameter

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.