Out attribute parameter : attribute « Class « Visual C++ .NET






Out attribute parameter

 
// compile with: /clr:safe or /clr:pure

#include "stdafx.h"

using namespace System;
using namespace System::Runtime::InteropServices;

public ref class C1
{
       public:

       void Func([Out] String^% text)
       {
           text = "testing";
       }
}

   
  








Related examples in the same category

1.Custom attribute
2.Creating Custom attribute
3.Obsolete attribute
4.Use the FlagsAttribute