Skip to content

Update SqlFacetAttribute.xml to indicate possible usage on input parameters #4477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion xml/Microsoft.SqlServer.Server/SqlFacetAttribute.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
<format type="text/markdown"><![CDATA[

## Remarks
<xref:Microsoft.SqlServer.Server.SqlFacetAttribute> may only be specified on non-void return values.
<xref:Microsoft.SqlServer.Server.SqlFacetAttribute> can only be specified on non-void return values or on input parameters.

To specify the <xref:Microsoft.SqlServer.Server.SqlFacetAttribute> on an input parameter, add the decoration inline with the parameter.

<xref:Microsoft.SqlServer.Server.SqlFacetAttribute> is used only to derive information about the return type, and is not intended to be a constraint specification on what can be stored in the type. Thus, if a field has a <xref:Microsoft.SqlServer.Server.SqlFacetAttribute> indicating its size to be 2 characters, then the SQL Server type of the field access expression is of size 2, but assignments into the field are not restricted by this facet.

Expand Down