Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Visual Studio
Technology Samples
 Active Directory Domain Services Sc...
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Samples
Active Directory Domain Services Schema Technology Sample

This sample demonstrates how to retrieve and extend Active Directory schema. This sample is available only in Visual C#.

For information about using the samples, see the following topics:

To build the sample

  1. Open a Command Prompt window and navigate to the Schema\CS directory. For information about required settings and the SDK Command Prompt, see How to: Set Sample Settings.

  2. Type msbuild.exe schema.sln at the command line.

To run the sample

  1. Navigate to the directory that contains the built executable file, using the command prompt.

  2. Type Schema and press Enter.

NoteNote:

This sample is a console application. You must start and run it in a Command Prompt window to view its output.

This sample defines the following methods.

Method

Description

SchemaSample

Lists the following information:

  • Schema associated with the current forest.

  • All abstract classes.

  • All defunct classes.

  • All indexed properties that are replicated to the global catalog.

SchemaClassSample

Finds the schema class in the current forest and lists its properties.

SchemaPropertySample

Finds the schema property in the current forest and lists its values.

The following methods have their invoking references commented out in the Main method. They need to be appropriately modified before running.

Method

Description

CreateNewClass

Creates a new schema class with example values that you can modify.

CreateNewProperty

Creates a new schema property with example values that you can modify.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker