-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Supported attributes from sdk for non browser build, fix relat…
…ed warnings (#45504)
- Loading branch information
Showing
6 changed files
with
67 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...oryServices.Protocols/src/System/DirectoryServices/Protocols/common/QuotaControl.Linux.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Security.Principal; | ||
|
||
namespace System.DirectoryServices.Protocols | ||
{ | ||
public partial class QuotaControl : DirectoryControl | ||
{ | ||
public SecurityIdentifier QuerySid | ||
{ | ||
get => _sid == null ? null : throw new System.PlatformNotSupportedException(SR.QuotaControlNotSupported); | ||
set | ||
{ | ||
if (value == null) | ||
{ | ||
_sid = null; | ||
} | ||
else | ||
{ | ||
throw new System.PlatformNotSupportedException(SR.QuotaControlNotSupported); | ||
} | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...yServices.Protocols/src/System/DirectoryServices/Protocols/common/QuotaControl.Windows.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System.Security.Principal; | ||
|
||
namespace System.DirectoryServices.Protocols | ||
{ | ||
public partial class QuotaControl : DirectoryControl | ||
{ | ||
public SecurityIdentifier QuerySid | ||
{ | ||
get => _sid == null ? null : new SecurityIdentifier(_sid, 0); | ||
set | ||
{ | ||
if (value == null) | ||
{ | ||
_sid = null; | ||
} | ||
else | ||
{ | ||
_sid = new byte[value.BinaryLength]; | ||
value.GetBinaryForm(_sid, 0); | ||
} | ||
} | ||
} | ||
} | ||
} |