@@ -11,7 +11,7 @@ namespace PowerPlatform_Dataverse_CodeSamples
11
11
{
12
12
internal static class Examples
13
13
{
14
- /// <snippetGetSecuredColumns>
14
+ // <snippetGetSecuredColumns>
15
15
/// <summary>
16
16
/// Generates a CSV file containing the names of secured columns for all tables in the organization.
17
17
/// </summary>
@@ -87,8 +87,8 @@ static internal void GetSecuredColumns(IOrganizationService service,
87
87
Path . Combine ( filepath , filename ) ,
88
88
csvContent . ToString ( ) ) ;
89
89
}
90
- /// </snippetGetSecuredColumns>
91
- /// <snippetDumpColumnSecurityInfo>
90
+ // </snippetGetSecuredColumns>
91
+ // <snippetDumpColumnSecurityInfo>
92
92
/// <summary>
93
93
/// Exports column security information for all entities in the organization to a CSV file.
94
94
/// </summary>
@@ -186,8 +186,8 @@ static internal void DumpColumnSecurityInfo(IOrganizationService service,
186
186
Path . Combine ( filepath , filename ) ,
187
187
csvContent . ToString ( ) ) ;
188
188
}
189
- /// </snippetDumpColumnSecurityInfo>
190
- /// <snippetGetSecuredColumnList>
189
+ // </snippetDumpColumnSecurityInfo>
190
+ // <snippetGetSecuredColumnList>
191
191
/// <summary>
192
192
/// Retrieves a list of secured columns managed by the specified field security profile.
193
193
/// </summary>
@@ -254,8 +254,8 @@ static internal List<string> GetSecuredColumnList(IOrganizationService service)
254
254
values . Sort ( ) ;
255
255
return values ;
256
256
}
257
- /// </snippetGetSecuredColumnList>
258
- /// <snippetSetColumnIsSecured>
257
+ // </snippetGetSecuredColumnList>
258
+ // <snippetSetColumnIsSecured>
259
259
/// <summary>
260
260
/// Updates the security status of a column in a Dataverse table.
261
261
/// </summary>
@@ -326,8 +326,8 @@ static internal void SetColumnIsSecured(
326
326
//Don't send a request to set the value to what it already is.
327
327
}
328
328
}
329
- /// </snippetSetColumnIsSecured>
330
- /// <snippetRetrieveColumnId>
329
+ // </snippetSetColumnIsSecured>
330
+ // <snippetRetrieveColumnId>
331
331
/// <summary>
332
332
/// Retrieves the unique identifier (MetadataId) of a column in a specified Dataverse table.
333
333
/// </summary>
@@ -407,8 +407,8 @@ private static Guid RetrieveColumnId(
407
407
}
408
408
return columnId ;
409
409
}
410
- /// </snippetRetrieveColumnId>
411
- /// <snippetGrantColumnAccess>
410
+ // </snippetRetrieveColumnId>
411
+ // <snippetGrantColumnAccess>
412
412
/// <summary>
413
413
/// Grants access to a secured column for a specified principal in Dataverse.
414
414
/// </summary>
@@ -471,8 +471,8 @@ static internal void GrantColumnAccess(
471
471
throw new Exception ( $ "Error in GrantColumnAccess: { ex . Message } ") ;
472
472
}
473
473
}
474
- /// </snippetGrantColumnAccess>
475
- /// <snippetModifyColumnAccess>
474
+ // </snippetGrantColumnAccess>
475
+ // <snippetModifyColumnAccess>
476
476
/// <summary>
477
477
/// Modifies access permissions for a secure column in a table for a specified principal.
478
478
/// </summary>
@@ -578,8 +578,8 @@ static internal void ModifyColumnAccess(
578
578
throw new Exception ( "No matching PrincipalObjectAttributeAccess record found." ) ;
579
579
}
580
580
}
581
- /// </snippetModifyColumnAccess>
582
- /// <snippetRevokeColumnAccess>
581
+ // </snippetModifyColumnAccess>
582
+ // <snippetRevokeColumnAccess>
583
583
/// <summary>
584
584
/// Revokes access to a secure column for a specified principal in a given record.
585
585
/// </summary>
@@ -653,8 +653,8 @@ internal static void RevokeColumnAccess(IOrganizationService service,
653
653
throw new Exception ( "No matching PrincipalObjectAttributeAccess record found." ) ;
654
654
}
655
655
}
656
- /// </snippetRevokeColumnAccess>
657
- /// <snippetGetUnmaskedExampleRows>
656
+ // </snippetRevokeColumnAccess>
657
+ // <snippetGetUnmaskedExampleRows>
658
658
/// <summary>
659
659
/// Retrieves a collection of example entities with unmasked data.
660
660
/// </summary>
@@ -700,8 +700,8 @@ internal static EntityCollection GetUnmaskedExampleRows(IOrganizationService ser
700
700
701
701
return response . EntityCollection ;
702
702
}
703
- /// </snippetGetUnmaskedExampleRows>
704
- /// <snippetAddPrivilegesToRole>
703
+ // </snippetGetUnmaskedExampleRows>
704
+ // <snippetAddPrivilegesToRole>
705
705
/// <summary>
706
706
/// Adds the specified privileges to a role in the organization.
707
707
/// </summary>
@@ -763,6 +763,6 @@ internal static void AddPrivilegesToRole(IOrganizationService service,
763
763
throw new Exception ( $ "Error adding privileges to role: { ex . Message } ", ex ) ;
764
764
}
765
765
}
766
- /// </snippetAddPrivilegesToRole>
766
+ // </snippetAddPrivilegesToRole>
767
767
}
768
768
}
0 commit comments