Skip to content

Commit 69ebeec

Browse files
committed
double backslash comments for snippets
1 parent 5341e8d commit 69ebeec

File tree

1 file changed

+20
-20
lines changed
  • dataverse/orgsvc/CSharp-NETCore/ColumnLevelSecurity

1 file changed

+20
-20
lines changed

dataverse/orgsvc/CSharp-NETCore/ColumnLevelSecurity/Examples.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace PowerPlatform_Dataverse_CodeSamples
1111
{
1212
internal static class Examples
1313
{
14-
/// <snippetGetSecuredColumns>
14+
// <snippetGetSecuredColumns>
1515
/// <summary>
1616
/// Generates a CSV file containing the names of secured columns for all tables in the organization.
1717
/// </summary>
@@ -87,8 +87,8 @@ static internal void GetSecuredColumns(IOrganizationService service,
8787
Path.Combine(filepath, filename),
8888
csvContent.ToString());
8989
}
90-
/// </snippetGetSecuredColumns>
91-
/// <snippetDumpColumnSecurityInfo>
90+
// </snippetGetSecuredColumns>
91+
// <snippetDumpColumnSecurityInfo>
9292
/// <summary>
9393
/// Exports column security information for all entities in the organization to a CSV file.
9494
/// </summary>
@@ -186,8 +186,8 @@ static internal void DumpColumnSecurityInfo(IOrganizationService service,
186186
Path.Combine(filepath, filename),
187187
csvContent.ToString());
188188
}
189-
/// </snippetDumpColumnSecurityInfo>
190-
/// <snippetGetSecuredColumnList>
189+
// </snippetDumpColumnSecurityInfo>
190+
// <snippetGetSecuredColumnList>
191191
/// <summary>
192192
/// Retrieves a list of secured columns managed by the specified field security profile.
193193
/// </summary>
@@ -254,8 +254,8 @@ static internal List<string> GetSecuredColumnList(IOrganizationService service)
254254
values.Sort();
255255
return values;
256256
}
257-
/// </snippetGetSecuredColumnList>
258-
/// <snippetSetColumnIsSecured>
257+
// </snippetGetSecuredColumnList>
258+
// <snippetSetColumnIsSecured>
259259
/// <summary>
260260
/// Updates the security status of a column in a Dataverse table.
261261
/// </summary>
@@ -326,8 +326,8 @@ static internal void SetColumnIsSecured(
326326
//Don't send a request to set the value to what it already is.
327327
}
328328
}
329-
/// </snippetSetColumnIsSecured>
330-
/// <snippetRetrieveColumnId>
329+
// </snippetSetColumnIsSecured>
330+
// <snippetRetrieveColumnId>
331331
/// <summary>
332332
/// Retrieves the unique identifier (MetadataId) of a column in a specified Dataverse table.
333333
/// </summary>
@@ -407,8 +407,8 @@ private static Guid RetrieveColumnId(
407407
}
408408
return columnId;
409409
}
410-
/// </snippetRetrieveColumnId>
411-
/// <snippetGrantColumnAccess>
410+
// </snippetRetrieveColumnId>
411+
// <snippetGrantColumnAccess>
412412
/// <summary>
413413
/// Grants access to a secured column for a specified principal in Dataverse.
414414
/// </summary>
@@ -471,8 +471,8 @@ static internal void GrantColumnAccess(
471471
throw new Exception($"Error in GrantColumnAccess: {ex.Message}");
472472
}
473473
}
474-
/// </snippetGrantColumnAccess>
475-
/// <snippetModifyColumnAccess>
474+
// </snippetGrantColumnAccess>
475+
// <snippetModifyColumnAccess>
476476
/// <summary>
477477
/// Modifies access permissions for a secure column in a table for a specified principal.
478478
/// </summary>
@@ -578,8 +578,8 @@ static internal void ModifyColumnAccess(
578578
throw new Exception("No matching PrincipalObjectAttributeAccess record found.");
579579
}
580580
}
581-
/// </snippetModifyColumnAccess>
582-
/// <snippetRevokeColumnAccess>
581+
// </snippetModifyColumnAccess>
582+
// <snippetRevokeColumnAccess>
583583
/// <summary>
584584
/// Revokes access to a secure column for a specified principal in a given record.
585585
/// </summary>
@@ -653,8 +653,8 @@ internal static void RevokeColumnAccess(IOrganizationService service,
653653
throw new Exception("No matching PrincipalObjectAttributeAccess record found.");
654654
}
655655
}
656-
/// </snippetRevokeColumnAccess>
657-
/// <snippetGetUnmaskedExampleRows>
656+
// </snippetRevokeColumnAccess>
657+
// <snippetGetUnmaskedExampleRows>
658658
/// <summary>
659659
/// Retrieves a collection of example entities with unmasked data.
660660
/// </summary>
@@ -700,8 +700,8 @@ internal static EntityCollection GetUnmaskedExampleRows(IOrganizationService ser
700700

701701
return response.EntityCollection;
702702
}
703-
/// </snippetGetUnmaskedExampleRows>
704-
/// <snippetAddPrivilegesToRole>
703+
// </snippetGetUnmaskedExampleRows>
704+
// <snippetAddPrivilegesToRole>
705705
/// <summary>
706706
/// Adds the specified privileges to a role in the organization.
707707
/// </summary>
@@ -763,6 +763,6 @@ internal static void AddPrivilegesToRole(IOrganizationService service,
763763
throw new Exception($"Error adding privileges to role: {ex.Message}", ex);
764764
}
765765
}
766-
/// </snippetAddPrivilegesToRole>
766+
// </snippetAddPrivilegesToRole>
767767
}
768768
}

0 commit comments

Comments
 (0)