Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
 DirectorySynchronizationOptions Enu...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DirectorySynchronizationOptions Enumeration

Contains flags that determine how directories within a domain will be synchronized. These options can be set for the DirectorySynchronization..::.Option property.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.DirectoryServices
Assembly:  System.DirectoryServices (in System.DirectoryServices.dll)
Visual Basic (Declaration)
<FlagsAttribute> _
Public Enumeration DirectorySynchronizationOptions
Visual Basic (Usage)
Dim instance As DirectorySynchronizationOptions
C#
[FlagsAttribute]
public enum DirectorySynchronizationOptions
Visual C++
[FlagsAttribute]
public enum class DirectorySynchronizationOptions
JScript
public enum DirectorySynchronizationOptions
Member nameDescription
None No flags are set.
ObjectSecurity If this flag is not present, the caller must have the right to replicate changes. If this flag is present, the caller requires no rights, but is allowed to see only objects and attributes that are accessible to the caller.
ParentsFirst Return parents before children, when parents would otherwise appear later in the replication stream.
PublicDataOnly Do not return private data in the search results.
IncrementalValues If this flag is not present, all of the values, up to a server-specified limit, in a multi-valued attribute are returned when any value changes. If this flag is present, only the changed values are returned.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
DirectorySynchronizationOptions Enum with PowerShell      Thomas Lee   |   Edit   |   Show History
# enum-DirectorySynchronizationOptions.ps1
# Enum sample using PowerShell
# Thomas Lee - tfl@psp.co.uk
 
# Get enums
$enums=[enum]::GetValues([System.DirectoryServices.DirectorySynchronizationOptions])
# Display values
"System.DirectoryServices.DirectorySynchronizationOptions enum has {0} possible values:" -f $enums.count
$i=0
$enums | %{"Value {0}: {1}" -f $i,$_.tostring();$i++}
""
 
# Checking against an enum value 
$ToCheck = "None"
if ($ToCheck -eq [System.DirectoryServices.DirectorySynchronizationOptions]::None)
{"`$ToCheck is None"}
else
{"`$ToCheck is NOT None"}

This script produces the following output:

PS C:\Documents and Settings\LeeT> 
D:\foo\enum-DirectorySynchronizationOptions.ps1
System.DirectoryServices.DirectorySynchronizationOptions enum has 5 possible values:
Value 0: None
Value 1: ObjectSecurity
Value 2: ParentsFirst
Value 3: PublicDataOnly
Value 4: IncrementalValues
 
$ToCheck is None
 
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker