77 references to CodeAttributeArgument
System.Data.Entity.Design (1)
System\Data\EntityModel\Emitters\AttributeEmitter.cs (1)
365
attribute.Arguments.Add(new
CodeAttributeArgument
(arguments[i - 1].ToString(), expression));
System.Runtime.Serialization (21)
System\Runtime\Serialization\CodeExporter.cs (21)
823
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
824
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(classDataContract.StableName.Namespace)));
826
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsReferenceProperty, new CodePrimitiveExpression(classDataContract.IsReference)));
889
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataMemberName)));
891
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsRequiredProperty, new CodePrimitiveExpression(dataMember.IsRequired)));
893
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.EmitDefaultValueProperty, new CodePrimitiveExpression(dataMember.EmitDefaultValue)));
895
dataMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.OrderProperty, new CodePrimitiveExpression(dataMember.Order)));
1092
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1093
dataContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(enumDataContract.StableName.Namespace)));
1112
enumMemberAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ValueProperty, new CodePrimitiveExpression(stringValue)));
1233
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NameProperty, new CodePrimitiveExpression(dataContractName)));
1234
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.NamespaceProperty, new CodePrimitiveExpression(collectionContract.StableName.Namespace)));
1236
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.IsReferenceProperty, new CodePrimitiveExpression(collectionContract.IsReference)));
1237
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ItemNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ItemName))));
1240
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.KeyNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.KeyName))));
1241
collectionContractAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ValueNameProperty, new CodePrimitiveExpression(GetNameForAttribute(collectionContract.ValueName))));
1278
new
CodeAttributeArgument
(Globals.IsAnyProperty, new CodePrimitiveExpression(true)))
1308
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("ElementName", new CodePrimitiveExpression(xmlDataContract.TopLevelElementName.Value)));
1312
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(xmlDataContract.TopLevelElementNamespace.Value)));
1316
xmlRootAttribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression(false)));
1346
namespaceAttribute.Arguments.Add(new
CodeAttributeArgument
(Globals.ClrNamespaceProperty, new CodePrimitiveExpression(clrNamespace)));
System.ServiceModel (24)
System\ServiceModel\Channels\SecurityAttributeGenerationHelper.cs (1)
53
attributeProperty = new
CodeAttributeArgument
(propertyName, newValue);
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (1)
215
dataContractAttributeDecl.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(part.Namespace)));
System\ServiceModel\Description\OperationGenerator.cs (7)
775
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
787
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("WrapperName",
789
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("WrapperNamespace",
791
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("IsWrapped",
795
messageContractAttr.Arguments.Add(new
CodeAttributeArgument
("IsWrapped",
1013
attr.Arguments.Add(new
CodeAttributeArgument
(field.Name, GetArgValue(fieldValue)));
1022
attr.Arguments.Add(new
CodeAttributeArgument
(property.Name, GetArgValue(propertyValue)));
System\ServiceModel\Description\ServiceContractGenerator.cs (15)
404
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(friendlyName)));
408
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(context.Contract.Namespace)));
410
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("ConfigurationName", new CodePrimitiveExpression(NamespaceHelper.GetCodeTypeReference(context.Namespace, context.ContractType).BaseType)));
414
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
421
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("CallbackContract", new CodeTypeOfExpression(context.DuplexCallbackTypeReference)));
426
serviceContractAttr.Arguments.Add(new
CodeAttributeArgument
("SessionMode",
455
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsOneWay", new CodePrimitiveExpression(true)));
459
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsTerminating", new CodePrimitiveExpression(true)));
463
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("IsInitiating", new CodePrimitiveExpression(false)));
467
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("AsyncPattern", new CodePrimitiveExpression(true)));
471
serviceOperationAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
664
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Action", new CodePrimitiveExpression(fault.Action)));
667
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("ProtectionLevel",
674
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(fault.ElementName.EncodedName)));
676
faultContractAttr.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(fault.Namespace)));
System.Web (2)
Compilation\TemplateControlCodeDomTreeGenerator.cs (1)
305
attrArgs.Add(new
CodeAttributeArgument
(arg.MemberName, new CodePrimitiveExpression(arg.TypedValue.Value)));
Compilation\UserControlCodeDomTreeGenerator.cs (1)
51
attribArg = new
CodeAttributeArgument
("ProviderName", new CodePrimitiveExpression(Parser.Provider));
System.Web.Services (5)
System\Web\Services\Description\SoapProtocolImporter.cs (3)
450
webService.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(targetNs)));
455
attribute.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(XmlConvert.DecodeName(Binding.Name))));
456
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(Binding.ServiceDescription.TargetNamespace)));
System\Web\Services\Description\WebCodeGenerator.cs (2)
249
arguments[i] = new
CodeAttributeArgument
(null, parameters[i]);
252
arguments[parameters.Length + i] = new
CodeAttributeArgument
(propNames[i], propValues[i]);
System.Workflow.Activities (4)
WebServiceReceive.cs (4)
760
CodeAttributeDeclaration attributeDeclaration = new CodeAttributeDeclaration("WebServiceBinding", new
CodeAttributeArgument
("ConformsTo", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression("WsiProfiles"), "BasicProfile1_1")), new
CodeAttributeArgument
("EmitConformanceClaims", new CodePrimitiveExpression(true)));
793
attrDecl.Arguments.Add(new
CodeAttributeArgument
("Description", new CodePrimitiveExpression(methodInfo.Name)));
794
attrDecl.Arguments.Add(new
CodeAttributeArgument
("EnableSession", new CodePrimitiveExpression(false)));
System.Xml (19)
System\Xml\Serialization\CodeExporter.cs (4)
238
attribute.Arguments.Add(new
CodeAttributeArgument
("AnonymousType", new CodePrimitiveExpression(true)));
242
attribute.Arguments.Add(new
CodeAttributeArgument
("TypeName", new CodePrimitiveExpression(name)));
246
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
249
attribute.Arguments.Add(new
CodeAttributeArgument
("IncludeInSchema", new CodePrimitiveExpression(false)));
System\Xml\Serialization\SoapCodeExporter.cs (2)
199
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(typeDesc.DataType.Name)));
202
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression(true)));
System\Xml\Serialization\XmlCodeExporter.cs (13)
179
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
182
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(typeMapping.TypeDesc.DataType.Name)));
185
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression((bool)rootElement.IsNullable)));
754
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(dataType)));
790
attribute.Arguments.Add(new
CodeAttributeArgument
("Form", new CodeFieldReferenceExpression(new CodeTypeReferenceExpression(typeof(XmlSchemaForm).FullName), Enum.Format(typeof(XmlSchemaForm), form, "G"))));
797
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
800
attribute.Arguments.Add(new
CodeAttributeArgument
("DataType", new CodePrimitiveExpression(dataTypeDesc.DataType.Name)));
803
attribute.Arguments.Add(new
CodeAttributeArgument
("IsNullable", new CodePrimitiveExpression((bool)isNullable)));
806
attribute.Arguments.Add(new
CodeAttributeArgument
("NestingLevel", new CodePrimitiveExpression(nestingLevel)));
809
attribute.Arguments.Add(new
CodeAttributeArgument
("Order", new CodePrimitiveExpression(sequenceId)));
818
attribute.Arguments.Add(new
CodeAttributeArgument
("Name", new CodePrimitiveExpression(name)));
821
attribute.Arguments.Add(new
CodeAttributeArgument
("Namespace", new CodePrimitiveExpression(ns)));
824
attribute.Arguments.Add(new
CodeAttributeArgument
("Order", new CodePrimitiveExpression(sequenceId)));
XamlBuildTask (1)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (1)
228
arguments[i] = new
CodeAttributeArgument
(propertyEntry.Key, GetCodeExpressionForAttributeArgument(attrib, propertyEntry.Value, classData));