Skip to content

Commit 4b3bffa

Browse files
authored
Update SqlFacetAttribute.xml to indicate possible usage on input parameters (#4477)
1 parent d738809 commit 4b3bffa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

xml/Microsoft.SqlServer.Server/SqlFacetAttribute.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
<format type="text/markdown"><![CDATA[
3535
3636
## Remarks
37-
<xref:Microsoft.SqlServer.Server.SqlFacetAttribute> may only be specified on non-void return values.
37+
<xref:Microsoft.SqlServer.Server.SqlFacetAttribute> can only be specified on non-void return values or on input parameters.
38+
39+
To specify the <xref:Microsoft.SqlServer.Server.SqlFacetAttribute> on an input parameter, add the decoration inline with the parameter.
3840
3941
<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.
4042

0 commit comments

Comments
 (0)