Skip to content

Commit bd0e5ce

Browse files
authored
Merge pull request #30 from FrendsPlatform/issue-29
LDAP.SearchObjects - Updated documentation
2 parents 0413fe9 + 6fe6177 commit bd0e5ce

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Frends.LDAP.SearchObjects/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [3.1.0] - 2025-04-01
4+
### Added
5+
- Added example values for new parameters.
6+
37
## [3.0.0] - 2025-03-17
48
### Added
59
[Breaking]

Frends.LDAP.SearchObjects/Frends.LDAP.SearchObjects/Definitions/Input.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,21 @@ public class Input
9797
/// Determine if only specified attributes should be returned.
9898
/// This allows user to specify encoding and type for certain attributes.
9999
/// </summary>
100+
/// <example>false</example>
100101
[DefaultValue(true)]
101102
public bool SearchOnlySpecifiedAttributes { get; set; }
102103

103104
/// <summary>
104105
/// The names of attributes to retrieve.
105106
/// </summary>
106-
/// <example>cn</example>
107+
/// <example>
108+
/// new Attributes[]
109+
/// {
110+
/// new Attributes { Key = "title", ReturnType = ReturnType.String },
111+
/// new Attributes { Key = "objectGUID", ReturnType = ReturnType.Guid },
112+
/// new Attributes { Key = "photo", ReturnType = ReturnType.ByteArray }
113+
/// }
114+
/// </example>
107115
public Attributes[] Attributes { get; set; } = Array.Empty<Attributes>();
108116
}
109117

@@ -121,6 +129,7 @@ public class Attributes
121129
/// <summary>
122130
/// Determines the return type of the attribute.
123131
/// </summary>
132+
/// <example>ReturnType.Guid</example>
124133
[DefaultValue(ReturnType.String)]
125134
public ReturnType ReturnType { get; set; }
126135
}

Frends.LDAP.SearchObjects/Frends.LDAP.SearchObjects/Frends.LDAP.SearchObjects.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFrameworks>net6.0</TargetFrameworks>
5-
<Version>3.0.0</Version>
5+
<Version>3.1.0</Version>
66
<Authors>Frends</Authors>
77
<Copyright>Frends</Copyright>
88
<Company>Frends</Company>

0 commit comments

Comments
 (0)