Custom Attribute Sample

This document contains the release information for the NGWS Custom Attribute sample.  You will find the following sections below:

 

 

Sample Overview

The purpose of this sample is to introduce more advanced developers to NGWS custom attributes. This sample demonstrates how to create a custom attribute and associate the attribute with a type and member. Additionally the sample demonstrates how to use reflection to determine if a type/member has a custom attribute associated with it. 

 

Location of the Sample

This sample list located in the CustAttr directory of the NGWS SDK sample directories.

For Example:

C:\Program Files\NGWSSDK\Samples\CustAttr

 

Building the Sample

In order to properly build and run this sample, the following steps need to be performed prior to building and running the sample…

·         Type NMAKE All from the command line.

For Example:

C:\Program Files\NGWSSDK\Samples\CustAttr\:>NMAKE All

 

Running the Sample

In order to run this sample, follow the instructions listed below.

For Example:

C:\Program Files\NGWSSDK\Samples\CustAttr\:>CustAttr