2 types derived from XmlElement
System.Configuration (1)
System\Configuration\ConfigXmlElement.cs (1)
14
internal sealed class ConfigXmlElement :
XmlElement
, IConfigErrorInfo {
System.Data (1)
fx\src\data\System\NewXml\XmlBoundElement.cs (1)
22
internal sealed class XmlBoundElement:
XmlElement
{
2 instantiations of XmlElement
System.Xml (2)
System\Xml\Dom\XmlDocument.cs (1)
890
XmlElement elem = new
XmlElement
( AddXmlName( prefix, localName, namespaceURI, null ), true, this );
System\Xml\Dom\XmlLoader.cs (1)
411
XmlElement element = new
XmlElement
( reader.Prefix, reader.LocalName, reader.NamespaceURI, this.doc );
1818 references to XmlElement
PresentationBuildTasks (9)
BuildTasks\Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (8)
395
XmlElement
nodeGroup = root.ChildNodes[i] as
XmlElement
;
408
XmlElement
nodeItem = nodeGroup.ChildNodes[j] as
XmlElement
;
427
XmlElement
item = node as
XmlElement
;
470
XmlElement
embedItem = null;
475
XmlElement
nodeItem = xmlProjectDoc.CreateElement(sItemName, root.NamespaceURI);
BuildTasks\Microsoft\Build\Tasks\Windows\UpdateManifestForBrowserApplication.cs (1)
122
XmlElement
hostInBrowser;
PresentationFramework (38)
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (1)
508
foreach (
XmlElement
content in contents)
src\Framework\MS\Internal\Annotations\XmlElementCollection.cs (10)
34
internal sealed class XmlElementCollection : ObservableCollection<
XmlElement
>
74
foreach (
XmlElement
item in this)
88
XmlElement
removedItem = this[index];
99
protected override void InsertItem(int index,
XmlElement
item)
115
protected override void SetItem(int index,
XmlElement
item)
122
XmlElement
originalItem = this[index];
149
private void UnregisterForElement(
XmlElement
element)
179
private void RegisterForElement(
XmlElement
element)
212
XmlElement
element = null;
225
element = current as
XmlElement
;
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (10)
475
SNCAnnotation annotation, XmlToken token, out AnnotationResource cargo, out
XmlElement
root, out bool newCargo, out bool newRoot)
518
private void UpdateAttribute(
XmlElement
root, XmlToken token, string value)
638
private static
XmlElement
FindRootXmlElement(XmlToken token, AnnotationResource cargo)
642
XmlElement
element = null;
669
foreach (
XmlElement
node in cargo.Contents)
690
XmlElement
root = SNCAnnotation.FindRootXmlElement(token, cargo);
743
XmlElement
root = null;
786
XmlElement
node = (
XmlElement
)FindData(token);
808
XmlElement
root;
src\Framework\MS\Internal\Globalization\BamlTreeMap.cs (4)
602
XmlElement
element = FindElementByID(_commentsDocument, node.Uid);
654
private static
XmlElement
FindElementByID(XmlDocument doc, string uid)
664
XmlElement
element = (
XmlElement
) node;
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (4)
442
XmlElement
root = doc.FirstChild as
XmlElement
;
497
XmlElement
child = node as
XmlElement
;
src\Framework\MS\Internal\IO\Packaging\XmlGlyphRunInfo.cs (4)
44
_glyphsNode = glyphsNode as
XmlElement
;
173
for (
XmlElement
currentNode = _glyphsNode;
175
currentNode = (currentNode.ParentNode as
XmlElement
))
257
private
XmlElement
_glyphsNode = null;
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
1048
XmlElement
colorsElement = doc.CreateElement(HighlightComponent.ColorsContentName, AnnotationXmlConstants.Namespaces.BaseSchemaNamespace);
src\Framework\System\Windows\Annotations\AnnotationResource.cs (4)
171
foreach (
XmlElement
content in _contents)
215
XmlElement
element = doc.ReadNode(reader) as
XmlElement
;
333
public Collection<
XmlElement
> Contents
System.Activities.Core.Presentation (1)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
63
typeof(
XmlElement
),
System.Configuration (2)
System\Configuration\ErrorInfoXmlDocument.cs (1)
92
public override
XmlElement
CreateElement( string prefix, string localName, string namespaceUri) {
System\Configuration\RSAProtectedConfigurationProvider.cs (1)
52
XmlElement
inputElement;
System.Data (170)
fx\src\data\System\Data\DataSet.cs (6)
1590
XmlElement
topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
1707
schema.LoadSchema((
XmlElement
)schNode, this);
1957
XmlElement
topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
2061
XmlElement
root = xdoc.DocumentElement;
2243
XmlElement
node = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
2358
XmlElement
topNode = null;
fx\src\data\System\Data\DataTable.cs (3)
5211
XmlElement
topNode = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
5368
XmlElement
topNode = null;
5616
XmlElement
node = xdoc.CreateElement(reader.Prefix, reader.LocalName, reader.NamespaceURI);
fx\src\data\System\Data\SimpleType.cs (3)
248
XmlElement
typeNode = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLETYPE, Keywords.XSDNS);
257
XmlElement
type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_RESTRICTION, Keywords.XSDNS);
282
XmlElement
constraint;
fx\src\data\System\Data\XDRSchema.cs (28)
22
internal
XmlElement
_schemaRoot;
34
internal void LoadSchema(
XmlElement
schemaRoot, DataSet ds) {
55
if (!(n is
XmlElement
))
58
XmlElement
child = (
XmlElement
) n;
71
internal
XmlElement
FindTypeNode(
XmlElement
node) {
101
if (vn is
XmlElement
&& ((
XmlElement
)vn).GetAttribute(Keywords.NAME) == strType)
102
return(
XmlElement
)vn;
127
internal bool IsTextOnlyContent(
XmlElement
node) {
148
internal bool IsXDRField(
XmlElement
node,
XmlElement
typeNode) {
170
internal DataTable HandleTable(
XmlElement
node) {
171
XmlElement
typeNode;
294
internal string GetInstanceName(
XmlElement
node) {
313
internal void HandleColumn(
XmlElement
node, DataTable table) {
359
XmlElement
typeNode = FindTypeNode(node);
452
internal void GetMinMax(
XmlElement
elNode, ref int minOccurs, ref int maxOccurs) {
458
internal void GetMinMax(
XmlElement
elNode, bool isAttribute, ref int minOccurs, ref int maxOccurs) {
500
internal void HandleTypeNode(
XmlElement
typeNode, DataTable table, ArrayList tableChildren)
506
if (!(n is
XmlElement
))
512
tableChild = HandleTable((
XmlElement
) n);
521
HandleColumn((
XmlElement
) n, table);
532
internal DataTable InstantiateTable(DataSet dataSet,
XmlElement
node,
XmlElement
typeNode) {
617
internal DataTable InstantiateSimpleTable(DataSet dataSet,
XmlElement
node) {
639
HandleColumn((
XmlElement
) node, table);
fx\src\data\System\Data\XmlDataLoader.cs (15)
30
XmlElement
topMostNode = null;
45
internal XmlDataLoader( DataSet dataset, bool IsXdr,
XmlElement
topNode, bool ignoreSchema) {
68
internal XmlDataLoader( DataTable datatable, bool IsXdr,
XmlElement
topNode, bool ignoreSchema) {
99
XmlElement
e = (
XmlElement
) n;
198
internal DataRow GetRowFromElement(
XmlElement
e ) {
202
internal bool FColumnElement(
XmlElement
e) {
210
if (tabNode is
XmlElement
)
313
XmlElement
e = xdoc.DocumentElement;
339
private void LoadRowData(DataRow row,
XmlElement
rowElement) {
367
XmlElement
e = (
XmlElement
) n;
461
if (n is
XmlElement
) {
462
XmlElement
e = (
XmlElement
) n;
fx\src\data\System\Data\xmlsaver.cs (73)
44
XmlElement
_sRoot;
50
XmlElement
dsElement = null;
51
XmlElement
constraintSeparator = null;
64
internal static void AddExtendedProperties(PropertyCollection props,
XmlElement
node) {
68
internal static void AddExtendedProperties(PropertyCollection props,
XmlElement
node, Type type) {
102
internal void AddXdoProperties(Object instance,
XmlElement
root, XmlDocument xd) {
119
internal void AddXdoProperty(PropertyDescriptor pd, Object instance,
XmlElement
root, XmlDocument xd) {
329
internal void WriteSchemaRoot(XmlDocument xd,
XmlElement
rootSchema, string targetNamespace) {
502
XmlElement
rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS);
586
XmlElement
dsCompositor = FillDataSetElement(xd, ds, dt);
598
XmlElement
el = HandleTable(top[i], xd, rootSchema);
629
XmlElement
node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
642
XmlElement
node = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
667
XmlElement
nodeAnn = null;
668
XmlElement
nodeApp = null;
698
XmlElement
_import = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS);
742
XmlElement
tNode = (
XmlElement
) namespaces[ns] ;
755
XmlElement
_import2 = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_IMPORT, Keywords.XSDNS);
801
internal
XmlElement
SchemaTree(XmlDocument xd, DataTable dt) {
814
XmlElement
rootSchema = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SCHEMA, Keywords.XSDNS);
818
XmlElement
dsCompositor = FillDataSetElement(xd, null, dt);
856
XmlElement
el = HandleTable(dt, xd, rootSchema, false);
865
internal
XmlElement
FillDataSetElement(XmlDocument xd, DataSet ds, DataTable dt) {
902
XmlElement
type = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS);
904
XmlElement
compositor = xd.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_CHOICE, Keywords.XSDNS);
943
XmlElement
rootSchema = SchemaTree(doc, dt);
971
internal
XmlElement
HandleRelation(DataRelation rel, XmlDocument dc) {
972
XmlElement
root = dc.CreateElement(Keywords.MSD, Keywords.MSD_RELATION, Keywords.MSDNS);
1020
private static
XmlElement
FindSimpleType(
XmlElement
schema, string name) {
1022
if (n is
XmlElement
) {
1023
XmlElement
e = (
XmlElement
) n;
1032
internal
XmlElement
GetSchema(string NamespaceURI) {
1033
XmlElement
schemaEl = (
XmlElement
) namespaces[NamespaceURI];
1048
internal void HandleColumnType(DataColumn col, XmlDocument dc,
XmlElement
root,
XmlElement
schema) {
1068
XmlElement
schNode= GetSchema(nSpace);
1090
XmlElement
elmSimpeType = FindSimpleType(schNode, name);
1133
internal void AddColumnProperties(DataColumn col,
XmlElement
root){
1200
internal
XmlElement
HandleColumn(DataColumn col, XmlDocument dc,
XmlElement
schema, bool fWriteOrdinal) {
1201
XmlElement
root;
1275
XmlElement
schNode = GetSchema(col.Namespace);
1282
XmlElement
tNode = GetSchema(col.Table.Namespace);
1328
internal void AppendChildWithoutRef(
XmlElement
node, string Namespace,
XmlElement
el, string refString) {
1329
XmlElement
schNode = GetSchema(Namespace);
1334
internal
XmlElement
FindTypeNode(
XmlElement
node, string strType) {
1339
if (!(n is
XmlElement
))
1342
XmlElement
child = (
XmlElement
) n;
1355
internal
XmlElement
HandleTable(DataTable table, XmlDocument dc,
XmlElement
schema) {
1473
internal
XmlElement
HandleTable(DataTable table, XmlDocument dc,
XmlElement
schema, bool genNested) {
1474
XmlElement
root = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ELEMENT, Keywords.XSDNS);
1562
XmlElement
type = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_COMPLEXTYPE, Keywords.XSDNS);
1565
XmlElement
typeSchema = GetSchema(table.TypeName.Namespace);
1589
XmlElement
compositor = null;
1594
XmlElement
sc = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_SIMPLECONTENT , Keywords.XSDNS);
1614
XmlElement
ext = dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_EXTENSION, Keywords.XSDNS);
1635
XmlElement
el = HandleColumn(col, dc, schema, fWriteOrdinals);
1637
XmlElement
node = isAttribute ? type : compositor;
1648
XmlElement
NestedTable;
1686
XmlElement
nodeAnn = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_ANNOTATION, Keywords.XSDNS);
1689
XmlElement
nodeApp = _dc.CreateElement(Keywords.XSD_PREFIX, Keywords.XSD_APPINFO, Keywords.XSDNS);
1706
XmlElement
selector, field;
1714
XmlElement
constraint = null;
1924
private void SetMSDataAttribute(
XmlElement
root, Type type)
fx\src\data\System\Data\XMLSchema.cs (3)
81
internal static bool GetBooleanAttribute(
XmlElement
element, String attrName, String attrNS, bool defVal) {
366
internal void HandleRelation(
XmlElement
node, bool fNested) {
743
HandleRelation((
XmlElement
)relations[i], fNested);
fx\src\data\System\NewXml\DataPointer.cs (1)
495
return((
XmlElement
)node).IsEmpty;
fx\src\data\System\NewXml\DataSetMappper.cs (5)
155
internal DataTable GetTableSchemaForElement(
XmlElement
elem ) {
183
internal DataRow GetRowFromElement(
XmlElement
e ) {
266
XmlElement
e = n as
XmlElement
;
306
DataRow row = GetRowFromElement( (
XmlElement
)n );
fx\src\data\System\NewXml\XmlBoundElement.cs (2)
189
XmlElement
element;
192
element = (
XmlElement
)(base.CloneNode( deep ));
fx\src\data\System\NewXml\XmlDataDocument.cs (29)
305
public override
XmlElement
CreateElement( string prefix, string localName, string namespaceURI) {
425
private
XmlElement
EnsureDocumentElement() {
426
XmlElement
docelem = DocumentElement;
440
private
XmlElement
EnsureNonRowDocumentElement() {
441
XmlElement
docElem = this.DocumentElement;
451
private
XmlElement
DemoteDocumentElement() {
458
XmlElement
oldDocElem = this.DocumentElement;
460
XmlElement
docElem = EnsureDocumentElement();
504
private void FixNestedChildren(DataRow row,
XmlElement
rowElement) {
507
XmlElement
childElem = r.Element;
564
private void Foliate(
XmlElement
element ) {
570
private void FoliateIfDataPointers( DataRow row,
XmlElement
rowElement ) {
688
XmlElement
e = node as
XmlElement
;
759
public DataRow GetRowFromElement(
XmlElement
e ) {
763
private XmlNode GetRowInsertBeforeLocation(DataRow row,
XmlElement
rowElement, XmlNode parentElement) {
793
public
XmlElement
GetElementFromRow( DataRow r ) {
836
private bool IsFoliated(
XmlElement
element ) {
1357
XmlElement
e = (
XmlElement
) iter.CurrentNode;
1390
XmlElement
newElem = new XmlBoundElement( string.Empty, col.EncodedColumnName, col.Namespace, this );
1548
parentRowInTree = GetRowFromElement( (
XmlElement
) childElement.ParentNode );
1555
XmlElement
newParent = GetElementFromRow( parentRowInRelation );
1860
XmlElement
rowElement = GetElementFromRow( row );
2004
private void OnUndeleteRow( DataRow row,
XmlElement
rowElement ) {
2006
XmlElement
parent;
2246
XmlElement
e = iter.CurrentNode as
XmlElement
;
2722
public override
XmlElement
GetElementById( string elemId ) {
fx\src\data\System\NewXml\XPathNodePointer.cs (2)
140
return((
XmlElement
)_node).IsEmpty;
322
XmlElement
rootElem = ((XmlDocument)this._node).DocumentElement;
System.Data.Entity.Design (11)
System\Data\Entity\Design\AspNet\EntityDesignerBuildProvider.cs (4)
57
XmlElement
conceptualSchemaElement;
58
XmlElement
mappingElement;
59
XmlElement
storageSchemaElement;
92
BuildProvider prov,
XmlElement
xmlElement, string resourceName)
System\Data\Entity\Design\EntityDesignerUtils.cs (7)
57
out
XmlElement
conceptualSchemaNode, out
XmlElement
mappingNode, out
XmlElement
storageSchemaNode, out string metadataArtifactProcessingValue)
83
conceptualSchemaNode = (
XmlElement
)xmlDocument.SelectSingleNode(
87
storageSchemaNode = (
XmlElement
)xmlDocument.SelectSingleNode(
91
mappingNode = (
XmlElement
)xmlDocument.SelectSingleNode(
124
internal static void OutputXmlElementToStream(
XmlElement
xmlElement, Stream stream)
System.IdentityModel (56)
System\IdentityModel\Configuration\ConfigurationElementInterceptor.cs (1)
57
public
XmlElement
ElementAsXml
System\IdentityModel\Protocols\WSTrust\EndpointReference.cs (4)
14
Collection<
XmlElement
> _details = new Collection<
XmlElement
>();
18
public Collection<
XmlElement
> Details
63
foreach (
XmlElement
element in _details )
System\IdentityModel\Protocols\WSTrust\RequestedSecurityToken.cs (3)
19
XmlElement
_tokenAsXml;
42
public RequestedSecurityToken(
XmlElement
tokenAsXml)
57
public virtual
XmlElement
SecurityTokenXml
System\IdentityModel\Protocols\WSTrust\WSTrustSerializationHelper.cs (3)
2778
public static
XmlElement
ReadInnerXml(XmlReader reader)
2783
public static
XmlElement
ReadInnerXml(XmlReader reader, bool onStartElement)
2805
XmlElement
securityTokenXml;
System\IdentityModel\Tokens\ConfigurationBasedIssuerNameRegistry.cs (4)
58
List<
XmlElement
> configNodes = XmlUtil.GetXmlElements(customConfiguration);
65
XmlElement
customConfigElement = configNodes[0];
74
XmlElement
childElement = node as
XmlElement
;
System\IdentityModel\Tokens\GenericXmlSecurityKeyIdentifierClause.cs (5)
8
XmlElement
referenceXml;
10
public GenericXmlSecurityKeyIdentifierClause(
XmlElement
referenceXml)
15
public GenericXmlSecurityKeyIdentifierClause(
XmlElement
referenceXml, byte[] derivationNonce, int derivationLength)
25
public
XmlElement
ReferenceXml
39
private bool Matches(
XmlElement
xmlElement)
System\IdentityModel\Tokens\GenericXmlSecurityToken.cs (4)
26
XmlElement
tokenXml;
32
XmlElement
tokenXml,
82
public
XmlElement
TokenXml
122
static string GetId(
XmlElement
tokenXml)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
88
List<
XmlElement
> configNodes = XmlUtil.GetXmlElements(customConfigElements);
92
foreach (
XmlElement
configElement in configNodes)
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (2)
93
List<
XmlElement
> configNodes = XmlUtil.GetXmlElements(customConfigElements);
97
foreach (
XmlElement
configElement in configNodes)
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (3)
49
public SamlSecurityTokenRequirement(
XmlElement
element)
171
List<
XmlElement
> configElements = XmlUtil.GetXmlElements(element.ChildNodes);
173
foreach (
XmlElement
childElement in configElements)
System\IdentityModel\Tokens\SecurityTokenElement.cs (8)
26
XmlElement
_securityTokenXml;
59
/// <param name="securityTokenXml">The <see cref="
XmlElement
"/> representation of the security token.</param>
62
public SecurityTokenElement(
XmlElement
securityTokenXml, SecurityTokenHandlerCollection securityTokenHandlers)
82
/// <see cref="SecurityTokenElement(
XmlElement
, SecurityTokenHandlerCollection)"/>.
84
public
XmlElement
SecurityTokenXml
128
/// <param name="securityTokenXml">The <see cref="
XmlElement
"/> representation of the security token.</param>
133
protected virtual ReadOnlyCollection<ClaimsIdentity> ValidateToken(
XmlElement
securityTokenXml, SecurityTokenHandlerCollection securityTokenHandlers)
151
protected virtual SecurityToken ReadSecurityToken(
XmlElement
securityTokenXml,
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (2)
101
List<
XmlElement
> configNodes = XmlUtil.GetXmlElements(customConfigElements);
105
foreach (
XmlElement
customConfigElement in configNodes)
System\IdentityModel\Tokens\WSTrust.cs (1)
167
protected static bool CheckElement(
XmlElement
element, string name, string ns, out string value)
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (2)
97
List<
XmlElement
> configNodes = XmlUtil.GetXmlElements(customConfigElements);
107
foreach (
XmlElement
customConfigElement in configNodes)
System\IdentityModel\XmlHelper.cs (2)
68
internal static string ReadTextElementAsTrimmedString(
XmlElement
element)
90
internal static void OnUnexpectedChildNodeError(
XmlElement
parent, XmlNode n)
System\IdentityModel\XmlUtil.cs (5)
252
public static List<
XmlElement
> GetXmlElements(XmlNodeList nodeList)
259
List<
XmlElement
> xmlElements = new List<
XmlElement
>();
262
XmlElement
tempElement = node as
XmlElement
;
System\ServiceModel\Security\EncryptedType.cs (4)
239
XmlElement
xml = null;
246
xml = (doc.ReadNode(reader) as
XmlElement
);
302
XmlElement
keyIdentifierReferenceXml = (doc.ReadNode(localReader) as
XmlElement
);
System\ServiceModel\Security\Tokens\BufferedGenericXmlSecurityToken.cs (1)
21
XmlElement
tokenXml,
System.IdentityModel.Selectors (17)
infocard\client\System\IdentityModel\Selectors\CardSpacePolicyElement.cs (9)
22
XmlElement
m_target;
23
XmlElement
m_issuer;
24
Collection<
XmlElement
> m_parameters;
35
public
XmlElement
Target
41
public
XmlElement
Issuer
47
public Collection<
XmlElement
> Parameters
70
public CardSpacePolicyElement(
XmlElement
target,
XmlElement
issuer, Collection<
XmlElement
> parameters, Uri privacyNoticeLink, int privacyNoticeVersion, bool isManagedIssuer)
infocard\client\System\IdentityModel\Selectors\CardSpaceSelector.cs (8)
102
public static GenericXmlSecurityToken GetToken(
XmlElement
endpoint,
103
IEnumerable<
XmlElement
> policy,
104
XmlElement
requiredRemoteTokenIssuer,
122
Collection<
XmlElement
> policyCollection = new Collection<
XmlElement
>();
124
foreach (
XmlElement
element in policy)
350
internal static string XmlToString(IEnumerable<
XmlElement
> xml)
354
foreach (
XmlElement
element in xml)
System.Runtime.Serialization (43)
System\Runtime\Serialization\DataContract.cs (3)
784
type = typeof(
XmlElement
);
871
else if (type == typeof(
XmlElement
) || type == typeof(XmlNode[]))
993
dataContract = new XmlDataContract(typeof(
XmlElement
));
System\Runtime\Serialization\Globals.cs (1)
1077
typeOfXmlElement = typeof(
XmlElement
);
System\Runtime\Serialization\SchemaExporter.cs (22)
130
XmlElement
genericInfoElement = null;
141
XmlElement
actualTypeElement = null;
161
XmlElement
isValueTypeElement = null;
224
private
XmlElement
ExportEmitDefaultValue(DataMember dataMember)
228
XmlElement
defaultValueElement = XmlDoc.CreateElement(DefaultValueAnnotation.Name, DefaultValueAnnotation.Namespace);
236
XmlElement
ExportActualType(XmlQualifiedName typeName)
241
static
XmlElement
ExportActualType(XmlQualifiedName typeName, XmlDocument xmlDoc)
243
XmlElement
actualTypeElement = xmlDoc.CreateElement(ActualTypeAnnotationName.Name, ActualTypeAnnotationName.Namespace);
256
XmlElement
ExportGenericInfo(Type clrType, string elementName, string elementNs)
300
XmlElement
typeElement = XmlDoc.CreateElement(elementName, elementNs);
319
XmlElement
argumentElement = ExportGenericInfo(genericArguments[argIndex], Globals.GenericParameterLocalName, Globals.SerializationNamespace);
341
XmlElement
ExportSurrogateData(object key)
357
return (
XmlElement
)XmlDoc.ReadNode(XmlReader.Create(new StringReader(stringWriter.ToString())));
365
XmlElement
genericInfoElement = null, isDictionaryElement = null;
413
XmlElement
ExportIsDictionary()
415
XmlElement
isDictionaryElement = XmlDoc.CreateElement(IsDictionaryAnnotationName.Name, IsDictionaryAnnotationName.Namespace);
424
XmlElement
actualTypeElement = (enumDataContract.BaseContractName == DefaultEnumBaseTypeName) ? null : ExportActualType(enumDataContract.BaseContractName);
464
XmlElement
genericInfoElement = null;
468
XmlElement
isValueTypeElement = null;
809
XmlElement
annotationElement = GetAnnotationMarkup(annotationQualifiedName, innerText, schema);
836
XmlElement
GetAnnotationMarkup(XmlQualifiedName annotationQualifiedName, string innerText, XmlSchema schema)
838
XmlElement
annotationElement = XmlDoc.CreateElement(annotationQualifiedName.Name, annotationQualifiedName.Namespace);
System\Runtime\Serialization\SchemaImporter.cs (14)
1036
XmlElement
defaultValueElement = ImportAnnotation(annotation, SchemaExporter.DefaultValueAnnotation);
1048
XmlElement
actualTypeElement = ImportAnnotation(annotation, SchemaExporter.ActualTypeAnnotationName);
1257
XmlElement
typeElement = xmlNode as
XmlElement
;
1285
XmlElement
typeElement = xmlNode as
XmlElement
;
1296
GenericInfo ImportGenericInfo(
XmlElement
typeElement, XmlSchemaType type)
1313
XmlElement
argumentElement = childNode as
XmlElement
;
1345
object ImportSurrogateData(
XmlElement
typeElement, string name, string ns)
1422
string GetInnerText(XmlQualifiedName typeName,
XmlElement
xmlElement)
1438
static
XmlElement
ImportAnnotation(XmlSchemaAnnotation annotation, XmlQualifiedName annotationQualifiedName)
1448
XmlElement
annotationElement = markup[i] as
XmlElement
;
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (1)
547
obj = (
XmlElement
)xmlDoc.ReadNode(xmlSerializableReader);
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (2)
475
XmlElement
xmlElement = obj as
XmlElement
;
System.ServiceModel (1015)
System\ServiceModel\Administration\ServiceInfo.cs (3)
132
else if (section.Metadata is System.Xml.
XmlElement
)
134
System.Xml.
XmlElement
metadata = (System.Xml.
XmlElement
)section.Metadata;
System\ServiceModel\Channels\CompositeDuplexBindingElement.cs (1)
191
static
XmlElement
CreateCompositeDuplexAssertion()
System\ServiceModel\Channels\CompositeDuplexBindingElementImporter.cs (1)
29
XmlElement
compositeDuplexAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
System\ServiceModel\Channels\ConnectionOrientedTransportBindingElement.cs (1)
325
ICollection<
XmlElement
> policyAssertions = context.GetBindingAssertions();
System\ServiceModel\Channels\ContextBindingElementImporter.cs (3)
23
public void BeforeImport(ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy)
59
XmlElement
httpUseCookieAssertion = null;
131
XmlElement
httpUseCookieAssertion = null;
System\ServiceModel\Channels\ContextBindingElementPolicy.cs (7)
52
XmlElement
assertion = Document.CreateElement(null, IncludeContextName, WscNamespace);
72
XmlElement
assertion = Document.CreateElement(null, HttpUseCookieName, HttpNamespace);
77
public static bool TryGetHttpUseCookieAssertion(ICollection<
XmlElement
> assertions, out
XmlElement
httpUseCookieAssertion)
86
foreach (
XmlElement
assertion in assertions)
100
static bool ContainOnlyWhitespaceChild(
XmlElement
parent)
127
foreach (
XmlElement
assertion in assertions)
System\ServiceModel\Channels\HttpsTransportBindingElement.cs (1)
181
public
XmlElement
GetTransportTokenAssertion()
System\ServiceModel\Channels\HttpTransportBindingElement.cs (7)
771
XmlElement
root = dummy.CreateElement(MetadataStrings.WSPolicy.Prefix,
801
ICollection<
XmlElement
> bindingAssertions = policyContext.GetBindingAssertions();
802
List<
XmlElement
> httpAuthAssertions = new List<
XmlElement
>();
805
foreach (
XmlElement
assertion in bindingAssertions)
839
httpAuthAssertions.ForEach(delegate(
XmlElement
element) { bindingAssertions.Remove(element); });
845
foreach (
XmlElement
assertion in bindingAssertions)
System\ServiceModel\Channels\ITransportTokenAssertionProvider.cs (1)
11
XmlElement
GetTransportTokenAssertion();
System\ServiceModel\Channels\MessageEncodingBindingElementImporter.cs (6)
16
void IWsdlImportExtension.BeforeImport(ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy)
183
ICollection<
XmlElement
> assertions = context.GetBindingAssertions();
185
XmlElement
encodingAssertion;
215
MessageEncodingBindingElement CreateEncodingBindingElement(ICollection<
XmlElement
> assertions, out
XmlElement
encodingAssertion)
218
foreach (
XmlElement
assertion in assertions)
System\ServiceModel\Channels\MsmqBindingElementBase.cs (3)
299
static bool FindAssertion(ICollection<
XmlElement
> assertions, string name)
318
ICollection<
XmlElement
> policyAssertions = context.GetBindingAssertions();
370
ICollection<
XmlElement
> policyAssertions = policyContext.GetBindingAssertions();
System\ServiceModel\Channels\OneWayBindingElement.cs (2)
321
XmlElement
assertion = doc.CreateElement(OneWayPolicyConstants.Prefix,
327
XmlElement
child = doc.CreateElement(OneWayPolicyConstants.Prefix, OneWayPolicyConstants.PacketRoutable, OneWayPolicyConstants.Namespace);
System\ServiceModel\Channels\OneWayBindingElementImporter.cs (1)
29
XmlElement
oneWayAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
System\ServiceModel\Channels\PeerSecurityHelpers.cs (13)
434
internal static PeerHashToken CreateFrom(
XmlElement
child)
439
XmlElement
element = (
XmlElement
)node;
445
XmlElement
authElement = element.ChildNodes[0] as
XmlElement
;
492
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(
XmlElement
element, SecurityTokenReferenceStyle tokenReferenceStyle)
528
XmlElement
rstXml = rst.RequestSecurityTokenXml;
535
XmlElement
element = (
XmlElement
)node;
622
XmlElement
responseXml = response.RequestSecurityTokenResponseXml;
625
foreach (
XmlElement
child in responseXml.ChildNodes)
631
XmlElement
desc = (child.ChildNodes[0] as
XmlElement
);
System\ServiceModel\Channels\PrivacyNoticeBindingElement.cs (1)
91
XmlElement
assertion = doc.CreateElement(PrivacyNoticePolicyStrings.PrivacyNoticePrefix,
System\ServiceModel\Channels\PrivacyNoticeBindingElementImporter.cs (1)
25
XmlElement
privacyNoticeAssertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(),
System\ServiceModel\Channels\ReliableSessionBindingElement.cs (12)
618
XmlElement
assertion = settings.CreateReliabilityAssertion(exporter.PolicyVersion, bindingElements);
624
static
XmlElement
CreatePolicyElement(PolicyVersion policyVersion, XmlDocument doc)
633
XmlElement
CreateReliabilityAssertion(PolicyVersion policyVersion, BindingElementCollection bindingElements)
636
XmlElement
child = null;
658
XmlElement
assertion = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.ReliableSessionName, reliableSessionNs);
663
XmlElement
policy = CreatePolicyElement(policyVersion, doc);
668
XmlElement
sequenceSTR = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.SequenceSTR, reliableSessionNs);
673
XmlElement
deliveryAssurance = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.DeliveryAssurance, reliableSessionNs);
676
XmlElement
nestedPolicy = CreatePolicyElement(policyVersion, doc);
679
XmlElement
exactlyOnce = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.ExactlyOnce, reliableSessionNs);
685
XmlElement
inOrder = doc.CreateElement(reliableSessionPrefix, ReliableSessionPolicyStrings.InOrder, reliableSessionNs);
739
static void WriteMillisecondsAttribute(
XmlElement
childElement, TimeSpan timeSpan)
System\ServiceModel\Channels\ReliableSessionBindingElementImporter.cs (18)
52
XmlElement
reliableSessionAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
116
static void ProcessReliableSession11Assertion(MetadataImporter importer,
XmlElement
element,
170
static void ProcessReliableSessionFeb2005Assertion(
XmlElement
element, ReliableSessionBindingElement settings)
209
XmlElement
element = ThrowIfNotPolicyElement(node, ReliableMessagingVersion.WSReliableMessaging11);
210
IEnumerable<IEnumerable<
XmlElement
>> alternatives = importer.NormalizePolicy(new
XmlElement
[] { element });
213
foreach (IEnumerable<
XmlElement
> alternative in alternatives)
333
static
XmlElement
ThrowIfNotPolicyElement(XmlNode node, ReliableMessagingVersion reliableMessagingVersion)
355
return (
XmlElement
)node;
372
IEnumerable<
XmlElement
> alternative)
377
foreach (
XmlElement
node in alternative)
423
bool TryImportSequenceSTR(
XmlElement
node)
441
bool TryImportDeliveryAssurance(MetadataImporter importer,
XmlElement
node)
453
XmlElement
policyElement = ThrowIfNotPolicyElement(policyNode, ReliableMessagingVersion.WSReliableMessaging11);
454
IEnumerable<IEnumerable<
XmlElement
>> alternatives = importer.NormalizePolicy(new
XmlElement
[] { policyElement });
456
foreach (IEnumerable<
XmlElement
> alternative in alternatives)
460
foreach (
XmlElement
element in alternative)
System\ServiceModel\Channels\SecurityBindingElement.cs (8)
1965
static void AddAssertionIfNotNull(PolicyConversionContext policyContext,
XmlElement
assertion)
1973
static void AddAssertionIfNotNull(PolicyConversionContext policyContext, Collection<
XmlElement
> assertions)
1983
static void AddAssertionIfNotNull(PolicyConversionContext policyContext, OperationDescription operation,
XmlElement
assertion)
1991
static void AddAssertionIfNotNull(PolicyConversionContext policyContext, OperationDescription operation, Collection<
XmlElement
> assertions)
2001
static void AddAssertionIfNotNull(PolicyConversionContext policyContext, MessageDescription message,
XmlElement
assertion)
2009
static void AddAssertionIfNotNull(PolicyConversionContext policyContext, FaultDescription message,
XmlElement
assertion)
2245
XmlElement
transportTokenAssertion = transportTokenAssertionProvider.GetTransportTokenAssertion();
2267
Collection<
XmlElement
> supportingTokenAssertions = sp.CreateWsspSupportingTokensAssertion(
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (12)
63
ICollection<
XmlElement
> operationBindingAssertions = policyContext.GetOperationBindingAssertions(operation);
96
void ImportProtectionAssertions(ICollection<
XmlElement
> assertions, out MessagePartSpecification signedParts, out MessagePartSpecification encryptedParts)
98
XmlElement
assertion;
237
ICollection<
XmlElement
> endpointBindingAssertions = policyContext.GetBindingAssertions();
255
ICollection<
XmlElement
> operationBindingAssertions = policyContext.GetOperationBindingAssertions(operation);
269
ICollection<
XmlElement
> messageBindingAssertions = policyContext.GetMessageBindingAssertions(message);
363
ICollection<
XmlElement
> faultBindingAssertions = policyContext.GetFaultBindingAssertions(fault);
472
void ImportSupportingTokenAssertions(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, SupportingTokenParameters requirements, SupportingTokenParameters optionalRequirements)
494
XmlElement
assertion = null;
527
XmlElement
assertion;
551
XmlElement
assertion;
576
XmlElement
assertion;
System\ServiceModel\Channels\SslStreamSecurityBindingElement.cs (3)
172
XmlElement
assertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(),
195
public
XmlElement
GetTransportTokenAssertion()
198
XmlElement
assertion =
System\ServiceModel\Channels\StandardBindingImporter.cs (1)
16
void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy) { }
System\ServiceModel\Channels\TransactionFlowBindingElement.cs (3)
363
XmlElement
GetAssertion(XmlDocument doc, TransactionFlowOption option, string prefix, string name, string ns, string policyNs)
368
XmlElement
result = null;
418
XmlElement
assertion = null;
System\ServiceModel\Channels\TransactionFlowBindingElementImporter.cs (7)
48
XmlElement
oleTxTransactionsAssertion = null;
49
XmlElement
wsatTransactionsAssertion = null;
53
ICollection<
XmlElement
> operationAssertions = context.GetOperationBindingAssertions(operation);
54
foreach (
XmlElement
element in operationAssertions)
167
TransactionFlowOption GetOption(
XmlElement
elem, bool useLegacyNs)
184
static bool IsRealOptionalTrue(
XmlElement
elem)
190
static bool IsLegacyOptionalTrue(
XmlElement
elem)
System\ServiceModel\Channels\TransportBindingElementImporter.cs (2)
25
void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy)
185
ICollection<
XmlElement
> policyCollection = policyContext.GetBindingAssertions();
System\ServiceModel\Channels\UnrecognizedAssertionsBindingElement.cs (16)
17
ICollection<
XmlElement
> bindingAsserions;
18
IDictionary<OperationDescription, ICollection<
XmlElement
>> operationAssertions;
19
IDictionary<MessageDescription, ICollection<
XmlElement
>> messageAssertions;
21
internal protected UnrecognizedAssertionsBindingElement(XmlQualifiedName wsdlBinding, ICollection<
XmlElement
> bindingAsserions)
33
internal ICollection<
XmlElement
> BindingAsserions
38
this.bindingAsserions = new Collection<
XmlElement
>();
43
internal IDictionary<OperationDescription, ICollection<
XmlElement
>> OperationAssertions
48
this.operationAssertions = new Dictionary<OperationDescription, ICollection<
XmlElement
>>();
53
internal IDictionary<MessageDescription, ICollection<
XmlElement
>> MessageAssertions
58
this.messageAssertions = new Dictionary<MessageDescription, ICollection<
XmlElement
>>();
63
internal void Add(OperationDescription operation, ICollection<
XmlElement
> assertions)
65
ICollection<
XmlElement
> existent;
72
foreach (
XmlElement
assertion in assertions)
77
internal void Add(MessageDescription message, ICollection<
XmlElement
> assertions)
79
ICollection<
XmlElement
> existent;
86
foreach (
XmlElement
assertion in assertions)
System\ServiceModel\Channels\UseManagedPresentationBindingElement.cs (1)
47
XmlElement
assertion = doc.CreateElement(UseManagedPresentationPolicyStrings.UseManagedPresentationPrefix,
System\ServiceModel\Channels\UseManagedPresentationBindingElementImporter.cs (1)
25
XmlElement
useManagedPresentationAssertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(),
System\ServiceModel\Channels\WindowsStreamSecurityBindingElement.cs (4)
134
XmlElement
assertion = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(),
163
public
XmlElement
GetTransportTokenAssertion()
166
XmlElement
assertion =
170
XmlElement
protectionLevelElement = document.CreateElement(TransportPolicyConstants.DotNetFramingPrefix,
System\ServiceModel\ComIntegration\MexServiceChannelBuilder.cs (2)
430
XmlElement
xmlDoc = document as
XmlElement
;
System\ServiceModel\Configuration\FederatedMessageSecurityOverHttpElement.cs (1)
165
foreach (
XmlElement
element in security.TokenRequestParameters)
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
259
foreach (
XmlElement
element in source.AdditionalRequestParameters)
System\ServiceModel\Configuration\Properties.cs (1)
3898
properties.Add(new ConfigurationProperty("xmlElement", typeof(System.Xml.
XmlElement
), null, null, null, System.Configuration.ConfigurationPropertyOptions.IsKey));
System\ServiceModel\Configuration\UnrecognizedPolicyAssertionElement.cs (9)
19
ICollection<
XmlElement
> bindingAsserions;
20
IDictionary<OperationDescription, ICollection<
XmlElement
>> operationAssertions;
21
IDictionary<MessageDescription, ICollection<
XmlElement
>> messageAssertions;
68
foreach (
XmlElement
assertion in this.bindingAsserions)
79
foreach (
XmlElement
assertion in this.operationAssertions[operation])
89
ICollection<
XmlElement
> assertions;
96
foreach (
XmlElement
assertion in assertions)
120
string ToString(
XmlElement
e, XmlDocument document)
122
XmlElement
top = document.CreateElement(e.Prefix, e.LocalName, e.NamespaceURI);
System\ServiceModel\Configuration\XmlElementElement.cs (5)
19
public XmlElementElement(
XmlElement
element) : this()
37
this.XmlElement = (
XmlElement
)source.XmlElement.Clone();
53
this.XmlElement = (
XmlElement
)doc.ReadNode(reader);
109
public
XmlElement
XmlElement
111
get { return (
XmlElement
)base[ConfigurationStrings.XmlElement]; }
System\ServiceModel\Configuration\XmlElementElementCollection.cs (1)
55
this.Add(new XmlElementElement((
XmlElement
)doc.ReadNode(reader)));
System\ServiceModel\Description\DataContractSerializerMessageContractImporter.cs (2)
48
void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy) { }
77
void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy) { }
System\ServiceModel\Description\ImportedPolicyConversionContext.cs (25)
36
ImportedPolicyConversionContext(ServiceEndpoint endpoint, IEnumerable<
XmlElement
> endpointAssertions,
37
Dictionary<OperationDescription, IEnumerable<
XmlElement
>> operationBindingAssertions,
38
Dictionary<MessageDescription, IEnumerable<
XmlElement
>> messageBindingAssertions,
39
Dictionary<FaultDescription, IEnumerable<
XmlElement
>> faultBindingAssertions,
45
this.endpointAssertions = new PolicyAssertionCollection(new MaxItemsEnumerable<
XmlElement
>(endpointAssertions, remainingAssertionsAllowed));
65
foreach (KeyValuePair<OperationDescription, IEnumerable<
XmlElement
>> entry in operationBindingAssertions)
67
this.operationBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<
XmlElement
>(entry.Value, remainingAssertionsAllowed));
71
foreach (KeyValuePair<MessageDescription, IEnumerable<
XmlElement
>> entry in messageBindingAssertions)
73
this.messageBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<
XmlElement
>(entry.Value, remainingAssertionsAllowed));
77
foreach (KeyValuePair<FaultDescription, IEnumerable<
XmlElement
>> entry in faultBindingAssertions)
79
this.faultBindingAssertions[entry.Key].AddRange(new MaxItemsEnumerable<
XmlElement
>(entry.Value, remainingAssertionsAllowed));
117
IEnumerable<Dictionary<MessageDescription, IEnumerable<
XmlElement
>>> messageAssertionEnumerator;
118
IEnumerable<Dictionary<FaultDescription, IEnumerable<
XmlElement
>>> faultAssertionEnumerator;
119
IEnumerable<Dictionary<OperationDescription, IEnumerable<
XmlElement
>>> operationAssertionEnumerator;
120
faultAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<FaultDescription, IEnumerable<
XmlElement
>>(policyAlternatives.FaultBindingAlternatives);
121
messageAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<MessageDescription, IEnumerable<
XmlElement
>>(policyAlternatives.MessageBindingAlternatives);
122
operationAssertionEnumerator = PolicyIterationHelper.GetCartesianProduct<OperationDescription, IEnumerable<
XmlElement
>>(policyAlternatives.OperationBindingAlternatives);
124
foreach (Dictionary<FaultDescription, IEnumerable<
XmlElement
>> faultAssertionsSelection in faultAssertionEnumerator)
126
foreach (Dictionary<MessageDescription, IEnumerable<
XmlElement
>> messageAssertionsSelection in messageAssertionEnumerator)
128
foreach (Dictionary<OperationDescription, IEnumerable<
XmlElement
>> operationAssertionsSelection in operationAssertionEnumerator)
130
foreach (IEnumerable<
XmlElement
> endpointAssertionsSelection in policyAlternatives.EndpointAlternatives)
313
public IEnumerable<IEnumerable<
XmlElement
>> EndpointAlternatives;
314
public Dictionary<OperationDescription, IEnumerable<IEnumerable<
XmlElement
>>> OperationBindingAlternatives;
315
public Dictionary<MessageDescription, IEnumerable<IEnumerable<
XmlElement
>>> MessageBindingAlternatives;
316
public Dictionary<FaultDescription, IEnumerable<IEnumerable<
XmlElement
>>> FaultBindingAlternatives;
System\ServiceModel\Description\IWsdlImportExtension.cs (1)
14
void BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy);
System\ServiceModel\Description\MessageContractImporter.cs (3)
99
else if (SoapHelper.IsSoapFaultBinding(o as
XmlElement
))
1365
XmlElement
soapFaultBindingRaw = extension as
XmlElement
;
System\ServiceModel\Description\MessageHeaderDescription.cs (1)
77
return isUnknownHeader || Multiple && (Type == typeof(
XmlElement
));
System\ServiceModel\Description\MetadataExchangeClient.cs (1)
708
metadataType = typeof(
XmlElement
);
System\ServiceModel\Description\MetadataImporter.cs (5)
75
internal virtual
XmlElement
ResolvePolicyReference(string policyReference,
XmlElement
contextAssertion)
79
internal BindingElementCollection ImportPolicy(ServiceEndpoint endpoint, Collection<Collection<
XmlElement
>> policyAlternatives)
81
foreach (Collection<
XmlElement
> selectedPolicy in policyAlternatives)
144
internal BindingOnlyPolicyConversionContext(ServiceEndpoint endpoint, IEnumerable<
XmlElement
> bindingPolicy)
System\ServiceModel\Description\MetadataSection.cs (2)
85
public static MetadataSection CreateFromPolicy(
XmlElement
policy, string identifier)
138
internal static bool IsPolicyElement(
XmlElement
policy)
System\ServiceModel\Description\MetadataSet.cs (4)
370
else if (o.@Metadata is System.Xml.
XmlElement
)
372
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)o.@Metadata;
599
o.@Metadata = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
System\ServiceModel\Description\PolicyAssertionCollection.cs (17)
13
public class PolicyAssertionCollection : Collection<
XmlElement
>
19
public PolicyAssertionCollection(IEnumerable<
XmlElement
> elements)
27
internal void AddRange(IEnumerable<
XmlElement
> elements)
29
foreach (
XmlElement
element in elements)
44
XmlElement
item = this[i];
51
public
XmlElement
Find(string localName, string namespaceUri)
56
public
XmlElement
Remove(string localName, string namespaceUri)
61
XmlElement
Find(string localName, string namespaceUri, bool remove)
70
XmlElement
item = this[index];
83
public Collection<
XmlElement
> FindAll(string localName, string namespaceUri)
88
public Collection<
XmlElement
> RemoveAll(string localName, string namespaceUri)
93
Collection<
XmlElement
> FindAll(string localName, string namespaceUri, bool remove)
100
Collection<
XmlElement
> collection = new Collection<
XmlElement
>();
104
XmlElement
item = this[index];
120
protected override void InsertItem(int index,
XmlElement
item)
128
protected override void SetItem(int index,
XmlElement
item)
System\ServiceModel\Description\PolicyConversionContext.cs (4)
41
internal static
XmlElement
FindAssertion(ICollection<
XmlElement
> assertions, string localName, string namespaceUri, bool remove)
43
XmlElement
result = null;
44
foreach (
XmlElement
assertion in assertions)
System\ServiceModel\Description\PolicyReader.cs (42)
22
internal delegate void PolicyWarningHandler(
XmlElement
contextAssertion, string warningMessage);
27
internal IEnumerable<IEnumerable<
XmlElement
>> NormalizePolicy(IEnumerable<
XmlElement
> policyAssertions)
51
static IEnumerable<
XmlElement
> Empty = new PolicyHelper.EmptyEnumerable<
XmlElement
>();
52
static IEnumerable<IEnumerable<
XmlElement
>> EmptyEmpty = new PolicyHelper.SingleEnumerable<IEnumerable<
XmlElement
>>(new PolicyHelper.EmptyEnumerable<
XmlElement
>());
61
IEnumerable<IEnumerable<
XmlElement
>> ReadNode(XmlNode node,
XmlElement
contextAssertion, YieldLimiter yieldLimiter)
68
string warningMsg = SR.GetString(SR.ExceededMaxPolicyComplexity, node.Name, PolicyHelper.GetFragmentIdentifier((
XmlElement
)node));
75
IEnumerable<IEnumerable<
XmlElement
>> nodes = EmptyEmpty;
80
nodes = ReadNode_PolicyOrAll((
XmlElement
)node, contextAssertion, yieldLimiter);
83
nodes = ReadNode_ExactlyOne((
XmlElement
)node, contextAssertion, yieldLimiter);
86
nodes = ReadNode_Assertion((
XmlElement
)node, yieldLimiter);
89
nodes = ReadNode_PolicyReference((
XmlElement
)node, contextAssertion, yieldLimiter);
100
IEnumerable<IEnumerable<
XmlElement
>> ReadNode_PolicyReference(
XmlElement
element,
XmlElement
contextAssertion, YieldLimiter yieldLimiter)
116
XmlElement
policy = metadataImporter.ResolvePolicyReference(idRef, contextAssertion);
131
IEnumerable<IEnumerable<
XmlElement
>> ReadNode_Assertion(
XmlElement
element, YieldLimiter yieldLimiter)
136
yield return new PolicyHelper.SingleEnumerable<
XmlElement
>(element);
139
IEnumerable<IEnumerable<
XmlElement
>> ReadNode_ExactlyOne(
XmlElement
element,
XmlElement
contextAssertion, YieldLimiter yieldLimiter)
145
foreach (IEnumerable<
XmlElement
> alternative in ReadNode(child, contextAssertion, yieldLimiter))
160
IEnumerable<IEnumerable<
XmlElement
>> ReadNode_PolicyOrAll(
XmlElement
element,
XmlElement
contextAssertion, YieldLimiter yieldLimiter)
162
IEnumerable<IEnumerable<
XmlElement
>> target = EmptyEmpty;
168
IEnumerable<IEnumerable<
XmlElement
>> childPolicy = ReadNode(child, contextAssertion, yieldLimiter);
169
target = PolicyHelper.CrossProduct<
XmlElement
>(target, childPolicy, yieldLimiter);
175
internal IEnumerable<IEnumerable<
XmlElement
>> NormalizePolicy(IEnumerable<
XmlElement
> policyAssertions)
177
IEnumerable<IEnumerable<
XmlElement
>> target = EmptyEmpty;
179
foreach (
XmlElement
child in policyAssertions)
181
IEnumerable<IEnumerable<
XmlElement
>> childPolicy = ReadNode(child, child, yieldLimiter);
182
target = PolicyHelper.CrossProduct<
XmlElement
>(target, childPolicy, yieldLimiter);
221
internal static string GetFragmentIdentifier(
XmlElement
element)
245
XmlElement
currentElement = node as
XmlElement
;
System\ServiceModel\Description\SoapHelper.cs (9)
115
XmlElement
fault = CreateSoapFaultBinding(version);
334
XmlElement
element = src as
XmlElement
;
371
static
XmlElement
ConvertSoapFaultBinding(
XmlElement
src, EnvelopeVersion version)
391
XmlElement
dest = CreateSoapFaultBinding(version);
543
static
XmlElement
CreateSoapFaultBinding(EnvelopeVersion version)
636
internal static bool IsSoapFaultBinding(
XmlElement
element)
641
internal static bool IsEncoded(
XmlElement
element)
System\ServiceModel\Description\WsdlExporter.cs (16)
628
XmlElement
endpointRef = (
XmlElement
)XmlDoc.ReadNode(xr).ChildNodes[0];
635
XmlElement
addressingAssertion;
679
XmlElement
innerPolicyElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
683
XmlElement
responsesAssertion = XmlDoc.CreateElement(MetadataStrings.Addressing10.MetadataPolicy.Prefix,
728
ICollection<
XmlElement
> assertions;
799
void AttachItemPolicy(ICollection<
XmlElement
> assertions, string key, WsdlNS.ServiceDescription policyWsdl, WsdlNS.DocumentableItem item)
809
XmlElement
policyReferenceElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
822
string InsertPolicy(string key, WsdlNS.ServiceDescription policyWsdl, ICollection<
XmlElement
> assertions)
825
XmlElement
policyElement = CreatePolicyElement(assertions);
843
XmlElement
CreatePolicyElement(ICollection<
XmlElement
> assertions)
846
XmlElement
policyElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
851
XmlElement
exactlyOneElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
857
XmlElement
allElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
863
foreach (
XmlElement
assertion in assertions)
System\ServiceModel\Description\WsdlHelper.cs (9)
156
IEnumerable<
XmlElement
> bindingPolicies = FindAllElements(wsdl.Extensions, MetadataStrings.WSPolicy.Elements.Policy);
158
foreach (
XmlElement
policyElement in bindingPolicies)
194
IEnumerable<
XmlElement
> bindingPolicyReferences = FindAllElements(extensions, MetadataStrings.WSPolicy.Elements.PolicyReference);
196
foreach (
XmlElement
policyReferenceElement in bindingPolicyReferences)
209
private static IEnumerable<
XmlElement
> FindAllElements(WsdlNS.ServiceDescriptionFormatExtensionCollection extensions, string elementName)
211
List<
XmlElement
> policyReferences = new List<
XmlElement
>();
214
XmlElement
element = extensions[i] as
XmlElement
;
System\ServiceModel\Description\WsdlImporter.cs (82)
34
readonly Dictionary<string,
XmlElement
> policyDocuments = new Dictionary<string,
XmlElement
>();
98
internal override
XmlElement
ResolvePolicyReference(string policyReference,
XmlElement
contextAssertion)
616
policyDocuments.Add(doc.Identifier, TryConvert<
XmlElement
>(doc));
812
XmlElement
element = extension as
XmlElement
;
1082
XmlElement
addressing10Element = wsdlPort.Extensions.Find(AddressingStrings.EndpointReference, Addressing10Strings.Namespace);
1083
XmlElement
addressing200408Element = wsdlPort.Extensions.Find(AddressingStrings.EndpointReference, Addressing200408Strings.Namespace);
1133
XmlElement
addressingAssertion = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
1138
XmlElement
policyElement = null;
1141
if (node is
XmlElement
&& MetadataSection.IsPolicyElement((
XmlElement
)node))
1143
policyElement = (
XmlElement
)node;
1158
IEnumerable<IEnumerable<
XmlElement
>> alternatives = importer.NormalizePolicy(new
XmlElement
[] { policyElement });
1159
foreach (IEnumerable<
XmlElement
> alternative in alternatives)
1161
foreach (
XmlElement
element in alternative)
1338
XmlElement
policy = PolicyConversionContext.FindAssertion(policyContext.GetBindingAssertions(), key, workaroundNS, true);
1439
XmlElement
policyElement = CreatePolicyElement(key, value, wsdlBindingQName);
1453
static
XmlElement
CreatePolicyElement(string elementName, string value, XmlQualifiedName wsdlBindingQName)
1457
XmlElement
policyElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
1462
XmlElement
exactlyOneElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
1468
XmlElement
allElement = XmlDoc.CreateElement(MetadataStrings.WSPolicy.Prefix,
1474
XmlElement
workaroundElement = xmlDocument.CreateElement(elementName, workaroundNS);
1576
internal static IEnumerable<MetadataSection> CreateMetadataDocuments(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, IEnumerable<
XmlElement
> policyDocuments)
1588
foreach (
XmlElement
policyDocument in policyDocuments)
1697
static void AddUnImportedPolicyString(StringBuilder stringBuilder, WsdlNS.NamedItem item, IEnumerable<
XmlElement
> unimportdPolicy)
1701
Dictionary<
XmlElement
,
XmlElement
> unique = new Dictionary<
XmlElement
,
XmlElement
>();
1703
foreach (
XmlElement
element in unimportdPolicy)
1719
static void WriteElement(
XmlElement
element, StringBuilder stringBuilder)
2003
IEnumerable<IEnumerable<
XmlElement
>> GetPolicyAlternatives(WsdlNS.NamedItem item, WsdlNS.ServiceDescription wsdl)
2005
Collection<
XmlElement
> policyElements = new Collection<
XmlElement
>();
2007
foreach (
XmlElement
element in GetReferencedPolicy(item, wsdl))
2012
foreach (
XmlElement
element in GetEmbeddedPolicy(item))
2022
void LogPolicyNormalizationWarning(
XmlElement
contextAssertion, string warningMessage)
2081
internal static IEnumerable<
XmlElement
> GetEmbeddedPolicy(WsdlNS.NamedItem item)
2083
List<
XmlElement
> embeddedPolicies = new List<
XmlElement
>();
2091
IEnumerable<
XmlElement
> GetReferencedPolicy(WsdlNS.NamedItem item, WsdlNS.ServiceDescription wsdl)
2097
XmlElement
policy = policyDictionary.ResolvePolicyReference(policyRef, wsdl);
2127
List<
XmlElement
> policyReferences = new List<
XmlElement
>();
2133
foreach (
XmlElement
element in policyReferences)
2204
IEnumerable<IEnumerable<
XmlElement
>> wsdlBindingAlternatives = this.GetPolicyAlternatives(endpointContext.WsdlBinding, bindingWsdl);
2207
IEnumerable<IEnumerable<
XmlElement
>> wsdlPortAlternatives = this.GetPolicyAlternatives(endpointContext.WsdlPort, endpointContext.WsdlPort.Service.ServiceDescription);
2208
policyAlternatives.EndpointAlternatives = PolicyHelper.CrossProduct<
XmlElement
>(wsdlBindingAlternatives, wsdlPortAlternatives, new YieldLimiter(this.importer.Quotas.MaxYields, this.importer));
2218
policyAlternatives.OperationBindingAlternatives = new Dictionary<OperationDescription, IEnumerable<IEnumerable<
XmlElement
>>>(endpointContext.Endpoint.Contract.Operations.Count);
2219
policyAlternatives.MessageBindingAlternatives = new Dictionary<MessageDescription, IEnumerable<IEnumerable<
XmlElement
>>>();
2220
policyAlternatives.FaultBindingAlternatives = new Dictionary<FaultDescription, IEnumerable<IEnumerable<
XmlElement
>>>();
2233
IEnumerable<IEnumerable<
XmlElement
>> operationAlternatives = this.GetPolicyAlternatives(wsdlOperationBinding, bindingWsdl);
2264
IEnumerable<IEnumerable<
XmlElement
>> messageAlternatives = this.GetPolicyAlternatives(wsdlMessageBinding, bindingWsdl);
2280
IEnumerable<IEnumerable<
XmlElement
>> faultAlternatives = this.GetPolicyAlternatives(wsdlFaultBinding, bindingWsdl);
2292
internal
XmlElement
ResolvePolicyReference(string policyReference,
XmlElement
contextPolicyAssertion)
2300
readonly Dictionary<WsdlNS.ServiceDescription, Dictionary<string,
XmlElement
>> embeddedPolicyDictionary = new Dictionary<WsdlNS.ServiceDescription, Dictionary<string,
XmlElement
>>();
2301
readonly Dictionary<string,
XmlElement
> externalPolicyDictionary = new Dictionary<string,
XmlElement
>();
2302
readonly Dictionary<
XmlElement
, WsdlNS.ServiceDescription> policySourceTable = new Dictionary<
XmlElement
, WsdlNS.ServiceDescription>();
2304
internal Dictionary<
XmlElement
, WsdlNS.ServiceDescription> PolicySourceTable
2318
foreach (
XmlElement
element in WsdlPolicyReader.GetEmbeddedPolicy(wsdl))
2327
foreach (KeyValuePair<string,
XmlElement
> policyDocument in importer.policyDocuments)
2334
void AddEmbeddedPolicy(WsdlImporter importer, WsdlNS.ServiceDescription wsdl,
XmlElement
element)
2345
Dictionary<string,
XmlElement
> wsdlPolicyDictionary;
2348
wsdlPolicyDictionary = new Dictionary<string,
XmlElement
>();
2363
void AddExternalPolicy(WsdlImporter importer, KeyValuePair<string,
XmlElement
> policyDocument)
2391
internal
XmlElement
ResolvePolicyReference(string policyReference,
XmlElement
contextPolicyAssertion)
2393
XmlElement
policy;
2415
internal
XmlElement
ResolvePolicyReference(string policyReference, WsdlNS.ServiceDescription wsdlDocument)
2417
XmlElement
policy;
2424
Dictionary<string,
XmlElement
> wsdlPolicyDictionary;
2434
static string CreateKeyFromPolicy(string identifier,
XmlElement
policyElement)
2441
static string GetFragmentIdentifier(
XmlElement
element)
2450
internal string CreateIdXPath(
XmlElement
policyAssertion)
2465
internal static string CreateIdXPath(WsdlNS.ServiceDescription wsdl,
XmlElement
element, string key)
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (5)
186
bool isXmlElement = headerDescription.Type == typeof(
XmlElement
);
208
XmlElement
xmlElement = (
XmlElement
)valueToSerialize;
346
parameters[messageInfo.UnknownHeaderDescription.Index] = elementList.ToArray(messageInfo.UnknownHeaderDescription.TypedHeader ? typeof(MessageHeader<
XmlElement
>) : typeof(
XmlElement
));
System\ServiceModel\Dispatcher\OperationFormatter.cs (2)
856
protected
XmlElement
headerValue;
857
public XmlElementMessageHeader(OperationFormatter operationFormatter, MessageVersion version, string name, string ns, bool mustUnderstand, string actor, bool relay,
XmlElement
headerValue) :
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (8)
97
foreach (
XmlElement
element in doc.DocumentElement.ChildNodes)
123
XmlElement
element = (
XmlElement
)GetContentOfMessageHeaderOfT(unknownHeaderDescription, unknownHeader, out mustUnderstand, out relay, out actor);
170
parameters[unknownHeaderDescription.Index] = unknownHeaders.ToArray(unknownHeaderDescription.TypedHeader ? typeof(MessageHeader<
XmlElement
>) : typeof(
XmlElement
));
238
parameters[unknownHeaderDescription.Index] = unknownHeaders.ToArray(unknownHeaderDescription.TypedHeader ? typeof(MessageHeader<
XmlElement
>) : typeof(
XmlElement
));
253
((
XmlElement
)unknownHeader).WriteTo(bufferWriter);
System\ServiceModel\FederatedMessageSecurityOverHttp.cs (6)
31
Collection<
XmlElement
> tokenRequestParameters;
39
tokenRequestParameters = new Collection<
XmlElement
>();
126
public Collection<
XmlElement
> TokenRequestParameters
164
foreach (
XmlElement
p in this.TokenRequestParameters)
283
Collection<
XmlElement
> nonAlgorithmRequestParameters;
311
foreach (
XmlElement
p in nonAlgorithmRequestParameters)
System\ServiceModel\PeerSecuritySettings.cs (2)
81
XmlElement
element = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
131
XmlElement
element = doc.CreateElement(PeerTransportPolicyConstants.PeerTransportPrefix,
System\ServiceModel\PeerTransportSecuritySettings.cs (2)
50
XmlElement
element = PolicyConversionContext.FindAssertion(context.GetBindingAssertions(),
87
XmlElement
element = doc.CreateElement(PeerTransportPolicyConstants.PeerTransportPrefix,
System\ServiceModel\Security\ClientCredentialsSecurityTokenManager.cs (2)
501
IEnumerable<
XmlElement
> tokenRequestParameters = issuedTokenParameters.CreateRequestParameters(issuerSecurityVersion, issuerSecurityTokenSerializer);
504
foreach (
XmlElement
requestParameter in tokenRequestParameters)
System\ServiceModel\Security\InfoCardHelper.cs (4)
726
Collection<
XmlElement
> m_parameters;
752
public PolicyElement(EndpointAddress target, EndpointAddress issuer, Collection<
XmlElement
> parameters, Uri privacyNoticeLink, int privacyNoticeVersion, bool isManagedIssuer, Binding binding)
792
private
XmlElement
EndPointAddressToXmlElement(EndpointAddress epr)
811
return (
XmlElement
)doc.ReadNode(reader);
System\ServiceModel\Security\RequestSecurityToken.cs (11)
38
XmlElement
rstXml;
39
IList<
XmlElement
> requestProperties;
69
XmlElement
requestSecurityTokenXml,
87
public RequestSecurityToken(
XmlElement
requestSecurityTokenXml,
106
XmlElement
rstXml,
251
public IEnumerable<
XmlElement
> RequestProperties
270
Collection<
XmlElement
> coll = new Collection<
XmlElement
>();
271
foreach (
XmlElement
property in value)
331
public
XmlElement
RequestSecurityTokenXml
573
this.requestProperties = new ReadOnlyCollection<
XmlElement
>(this.requestProperties);
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (5)
46
XmlElement
rstrXml;
72
public RequestSecurityTokenResponse(
XmlElement
requestSecurityTokenResponseXml,
99
XmlElement
requestSecurityTokenResponseXml,
141
XmlElement
rstrXml,
385
public
XmlElement
RequestSecurityTokenResponseXml
System\ServiceModel\Security\SecurityStandardsManager.cs (2)
145
internal bool TryCreateKeyIdentifierClauseFromTokenXml(
XmlElement
element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause)
150
internal SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(
XmlElement
element, SecurityTokenReferenceStyle tokenReferenceStyle)
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (2)
119
XmlElement
rstrClone = (
XmlElement
) rstr.RequestSecurityTokenResponseXml.CloneNode(true);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenParameters.cs (67)
34
Collection<
XmlElement
> additionalRequestParameters = new Collection<
XmlElement
>();
56
foreach (
XmlElement
parameter in other.additionalRequestParameters)
58
this.additionalRequestParameters.Add((
XmlElement
)parameter.Clone());
99
public Collection<
XmlElement
> AdditionalRequestParameters
240
internal void SetRequestParameters(Collection<
XmlElement
> requestParameters, TrustDriver trustDriver)
248
Collection<
XmlElement
> unknownRequestParameters = new Collection<
XmlElement
>();
250
foreach (
XmlElement
element in requestParameters)
255
Collection<
XmlElement
> requiredClaims;
267
Collection<
XmlElement
> unrecognizedRequiredClaims = new Collection<
XmlElement
>();
268
foreach (
XmlElement
claimRequirement in requiredClaims)
312
public Collection<
XmlElement
> CreateRequestParameters(MessageSecurityVersion messageSecurityVersion, SecurityTokenSerializer securityTokenSerializer)
317
internal Collection<
XmlElement
> CreateRequestParameters(TrustDriver driver)
322
Collection<
XmlElement
> result = new Collection<
XmlElement
>();
337
Collection<
XmlElement
> claimsElements = new Collection<
XmlElement
>();
341
XmlElement
element = doc.CreateElement(wsidPrefix, "ClaimType", wsidNamespace);
358
Collection<
XmlElement
> trustNormalizedParameters = NormalizeAdditionalParameters(this.additionalRequestParameters,
362
foreach (
XmlElement
parameter in trustNormalizedParameters)
371
private Collection<
XmlElement
> NormalizeAdditionalParameters(Collection<
XmlElement
> additionalParameters,
382
Collection<
XmlElement
> tmpCollection = new Collection<
XmlElement
>();
383
foreach (
XmlElement
e in additionalParameters)
395
XmlElement
encryptionAlgorithmElement = null;
396
XmlElement
canonicalizationAlgorithmElement = null;
397
XmlElement
keyWrapAlgorithmElement = null;
398
XmlElement
secondaryParameter = null;
426
XmlElement
child = node as
XmlElement
;
505
Collection<
XmlElement
> childrenToPromote = null;
514
foreach (
XmlElement
parameter in tmpCollection)
519
childrenToPromote = new Collection<
XmlElement
>();
523
XmlElement
innerElement = innerNode as
XmlElement
;
541
XmlElement
encryptionElement = null;
544
XmlElement
canonicalizationElement = null;
547
XmlElement
requiredClaimsElement = null;
548
Collection<
XmlElement
> requiredClaims = null;
550
Collection<
XmlElement
> processedElements = new Collection<
XmlElement
>();
552
foreach (
XmlElement
e in childrenToPromote)
576
XmlElement
keyWrapAlgorithmElement = null;
582
Collection<
XmlElement
> reqClaims;
639
private bool CollectionContainsElementsWithTrustNamespace(Collection<
XmlElement
> collection, string trustNamespace)
651
private bool CanPromoteToRoot(
XmlElement
innerElement, WSTrustDec2005.DriverDec2005 trust13Driver, bool clientSideClaimTypeRequirementsSpecified)
656
Collection<
XmlElement
> dummyOutParamForRequiredClaims = null;
711
internal bool DoAlgorithmsMatch(SecurityAlgorithmSuite algorithmSuite, SecurityStandardsManager standardsManager, out Collection<
XmlElement
> otherRequestParameters)
718
otherRequestParameters = new Collection<
XmlElement
>();
721
Collection<
XmlElement
> trustVersionNormalizedParameterCollection;
731
trustVersionNormalizedParameterCollection = new Collection<
XmlElement
>();
732
foreach (
XmlElement
innerElement in this.AdditionalRequestParameters[0])
745
XmlElement
element = trustVersionNormalizedParameterCollection[i];
849
XmlElement
claimTypeRequirement = GetClaimTypeRequirement(parameters.AdditionalRequestParameters, standardsManager);
852
XmlElement
claimTypeElement = claimTypeRequirement.ChildNodes[0] as
XmlElement
;
882
internal static
XmlElement
GetClaimTypeRequirement(Collection<
XmlElement
> additionalRequestParameters, SecurityStandardsManager standardsManager)
884
foreach (
XmlElement
requestParameter in additionalRequestParameters)
895
Collection<
XmlElement
> secondaryParameters = new Collection<
XmlElement
>();
898
XmlElement
nodeAsElement = node as
XmlElement
;
904
XmlElement
claimTypeRequirement = GetClaimTypeRequirement(secondaryParameters, standardsManager);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (9)
104
public Collection<
XmlElement
> TokenRequestParameters
437
foreach (
XmlElement
element in TokenRequestParameters)
448
XmlElement
CreateXmlTokenElement(SecurityToken token, string prefix, string name, string ns, string usage)
499
Collection<
XmlElement
> requestProperties = new Collection<
XmlElement
>();
535
public Collection<
XmlElement
> RequestProperties
892
Collection<
XmlElement
> newRequestProperties = new Collection<
XmlElement
>();
902
XmlElement
keyTypeElement = this.StandardsManager.TrustDriver.CreateKeyTypeElement(this.keyType);
System\ServiceModel\Security\TrustDriver.cs (24)
164
public abstract
XmlElement
CreateKeySizeElement(int keySize);
165
public abstract
XmlElement
CreateKeyTypeElement(SecurityKeyType keyType);
166
public abstract
XmlElement
CreateTokenTypeElement(string tokenTypeUri);
167
public abstract
XmlElement
CreateRequiredClaimsElement(IEnumerable<
XmlElement
> claimsList);
168
public abstract
XmlElement
CreateUseKeyElement(SecurityKeyIdentifier keyIdentifier, SecurityStandardsManager standardsManager);
169
public abstract
XmlElement
CreateSignWithElement(string signatureAlgorithm);
170
public abstract
XmlElement
CreateEncryptWithElement(string encryptionAlgorithm);
171
public abstract
XmlElement
CreateEncryptionAlgorithmElement(string encryptionAlgorithm);
172
public abstract
XmlElement
CreateCanonicalizationAlgorithmElement(string canonicalicationAlgorithm);
173
public abstract
XmlElement
CreateComputedKeyAlgorithmElement(string computedKeyAlgorithm);
174
public abstract Collection<
XmlElement
> ProcessUnknownRequestParameters(Collection<
XmlElement
> unknownRequestParameters, Collection<
XmlElement
> originalRequestParameters);
175
public abstract bool TryParseKeySizeElement(
XmlElement
element, out int keySize);
176
public abstract bool TryParseKeyTypeElement(
XmlElement
element, out SecurityKeyType keyType);
177
public abstract bool TryParseTokenTypeElement(
XmlElement
element, out string tokenType);
178
public abstract bool TryParseRequiredClaimsElement(
XmlElement
element, out Collection<
XmlElement
> requiredClaims);
180
internal virtual bool IsSignWithElement(
XmlElement
element, out string signatureAlgorithm) { signatureAlgorithm = null; return false; }
181
internal virtual bool IsEncryptWithElement(
XmlElement
element, out string encryptWithAlgorithm) { encryptWithAlgorithm = null; return false; }
182
internal virtual bool IsEncryptionAlgorithmElement(
XmlElement
element, out string encryptionAlgorithm) { encryptionAlgorithm = null; return false; }
183
internal virtual bool IsCanonicalizationAlgorithmElement(
XmlElement
element, out string canonicalizationAlgorithm) { canonicalizationAlgorithm = null; return false; }
184
internal virtual bool IsKeyWrapAlgorithmElement(
XmlElement
element, out string keyWrapAlgorithm) { keyWrapAlgorithm = null; return false; }
System\ServiceModel\Security\WSSecureConversation.cs (6)
101
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
336
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
351
XmlElement
element = node as
XmlElement
;
371
protected abstract bool CanReadGeneration(
XmlElement
element);
373
protected abstract UniqueId ReadGeneration(
XmlElement
element);
System\ServiceModel\Security\WSSecureConversationDec2005.cs (2)
91
protected override bool CanReadGeneration(
XmlElement
element)
102
protected override UniqueId ReadGeneration(
XmlElement
element)
System\ServiceModel\Security\WSSecureConversationFeb2005.cs (2)
83
protected override bool CanReadGeneration(
XmlElement
element)
94
protected override UniqueId ReadGeneration(
XmlElement
element)
System\ServiceModel\Security\WSSecurityJan2004.cs (6)
108
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
211
public override bool CanReadTokenCore(
XmlElement
element)
221
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
308
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
365
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
497
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
System\ServiceModel\Security\WSSecurityPolicy.cs (259)
123
public virtual
XmlElement
CreateWsspAssertion(string name)
128
public virtual bool IsWsspAssertion(
XmlElement
assertion)
133
public virtual bool IsWsspAssertion(
XmlElement
assertion, string name)
138
public virtual bool IsMsspAssertion(
XmlElement
assertion, string name)
143
public virtual bool TryImportWsspAssertion(ICollection<
XmlElement
> assertions, string name, out
XmlElement
assertion)
147
foreach (
XmlElement
e in assertions)
160
public virtual bool TryImportWsspAssertion(ICollection<
XmlElement
> assertions, string name)
165
public virtual bool TryImportWsspAssertion(ICollection<
XmlElement
> assertions, string name, bool isOptional)
167
foreach (
XmlElement
e in assertions)
179
public virtual
XmlElement
CreateMsspAssertion(string name)
184
public virtual bool CanImportAssertion(ICollection<
XmlElement
> assertions)
186
foreach (
XmlElement
e in assertions)
225
public virtual bool TryImportMsspAssertion(ICollection<
XmlElement
> assertions, string name)
227
foreach (
XmlElement
e in assertions)
239
public virtual
XmlElement
CreateWspPolicyWrapper(MetadataExporter exporter, params
XmlElement
[] nestedAssertions)
241
XmlElement
result = doc.CreateElement(WspPrefix, PolicyName, exporter.PolicyVersion.Namespace);
245
foreach (
XmlElement
e in nestedAssertions)
257
public virtual
XmlElement
CreateWsspSignedPartsAssertion(MessagePartSpecification parts)
264
XmlElement
result;
285
public virtual
XmlElement
CreateWsspEncryptedPartsAssertion(MessagePartSpecification parts)
292
XmlElement
result;
313
public virtual MessagePartSpecification TryGetProtectedParts(
XmlElement
assertion)
323
else if (node is
XmlElement
)
325
XmlElement
element = (
XmlElement
)node;
359
public virtual bool TryImportWsspEncryptedPartsAssertion(ICollection<
XmlElement
> assertions, out MessagePartSpecification parts, out
XmlElement
assertion)
373
public virtual bool TryImportWsspSignedPartsAssertion(ICollection<
XmlElement
> assertions, out MessagePartSpecification parts, out
XmlElement
assertion)
387
public virtual
XmlElement
CreateWsspHeaderAssertion(XmlQualifiedName header)
389
XmlElement
result = CreateWsspAssertion(HeaderName);
396
public virtual
XmlElement
CreateWsspSymmetricBindingAssertion(MetadataExporter exporter, PolicyConversionContext policyContext, SymmetricSecurityBindingElement binding)
403
XmlElement
result = CreateWsspAssertion(SymmetricBindingName);
420
public virtual bool TryGetNestedPolicyAlternatives(MetadataImporter importer,
XmlElement
assertion, out Collection<Collection<
XmlElement
>> alternatives)
424
XmlElement
policyElement = null;
427
if (node is
XmlElement
&& node.LocalName == PolicyName && (node.NamespaceURI == WspNamespace || node.NamespaceURI == Wsp15Namespace))
429
policyElement = (
XmlElement
)node;
440
IEnumerable<IEnumerable<
XmlElement
>> enumerableAlternatives = importer.NormalizePolicy(new
XmlElement
[] { policyElement });
442
alternatives = new Collection<Collection<
XmlElement
>>();
443
foreach (IEnumerable<
XmlElement
> enumerableAlternative in enumerableAlternatives)
445
Collection<
XmlElement
> alternative = new Collection<
XmlElement
>();
447
foreach (
XmlElement
e in enumerableAlternative)
457
public virtual bool TryImportWsspSymmetricBindingAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, out SymmetricSecurityBindingElement binding, out
XmlElement
assertion)
461
Collection<Collection<
XmlElement
>> alternatives;
466
foreach (Collection<
XmlElement
> alternative in alternatives)
494
public virtual
XmlElement
CreateWsspAsymmetricBindingAssertion(MetadataExporter exporter, PolicyConversionContext policyContext, AsymmetricSecurityBindingElement binding)
501
XmlElement
result = CreateWsspAssertion(AsymmetricBindingName);
519
public virtual bool TryImportWsspAsymmetricBindingAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, out AsymmetricSecurityBindingElement binding, out
XmlElement
assertion)
523
Collection<Collection<
XmlElement
>> alternatives;
528
foreach (Collection<
XmlElement
> alternative in alternatives)
557
public virtual
XmlElement
CreateWsspTransportBindingAssertion(MetadataExporter exporter, TransportSecurityBindingElement binding,
XmlElement
transportTokenAssertion)
559
XmlElement
result = CreateWsspAssertion(TransportBindingName);
572
public virtual bool TryImportWsspTransportBindingAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, out TransportSecurityBindingElement binding, out
XmlElement
assertion)
576
Collection<Collection<
XmlElement
>> alternatives;
581
foreach (Collection<
XmlElement
> alternative in alternatives)
583
XmlElement
transportTokenAssertion;
612
public virtual
XmlElement
CreateWsspWssAssertion(MetadataExporter exporter, SecurityBindingElement binding)
644
public virtual bool TryImportWsspWssAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, SecurityBindingElement binding, out
XmlElement
assertion)
656
Collection<Collection<
XmlElement
>> alternatives;
662
foreach (Collection<
XmlElement
> alternative in alternatives)
683
foreach (Collection<
XmlElement
> alternative in alternatives)
715
public virtual
XmlElement
CreateWsspWss10Assertion(MetadataExporter exporter)
717
XmlElement
result = CreateWsspAssertion(Wss10Name);
728
public virtual
XmlElement
CreateWsspWss11Assertion(MetadataExporter exporter, bool requireSignatureConfirmation)
730
XmlElement
result = CreateWsspAssertion(Wss11Name);
743
public virtual
XmlElement
CreateWsspAssertionMustSupportRefKeyIdentifierName()
755
public virtual
XmlElement
CreateWsspAssertionMustSupportRefIssuerSerialName()
767
public virtual
XmlElement
CreateWsspAssertionMustSupportRefThumbprintName()
779
public virtual
XmlElement
CreateWsspAssertionMustSupportRefEncryptedKeyName()
792
public virtual
XmlElement
CreateWsspRequireSignatureConformationAssertion(bool requireSignatureConfirmation)
804
public abstract
XmlElement
CreateWsspTrustAssertion(MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode);
806
public abstract bool TryImportWsspTrustAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, SecurityBindingElement binding, out
XmlElement
assertion);
808
protected
XmlElement
CreateWsspTrustAssertion(string trustName, MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode)
810
XmlElement
result = CreateWsspAssertion(trustName);
822
protected bool TryImportWsspTrustAssertion(string trustName, MetadataImporter importer, ICollection<
XmlElement
> assertions, SecurityBindingElement binding, out
XmlElement
assertion)
834
Collection<Collection<
XmlElement
>> alternatives;
839
foreach (Collection<
XmlElement
> alternative in alternatives)
880
public virtual
XmlElement
CreateWsspRequireClientEntropyAssertion(SecurityKeyEntropyMode keyEntropyMode)
892
public virtual
XmlElement
CreateWsspRequireServerEntropyAssertion(SecurityKeyEntropyMode keyEntropyMode)
904
public virtual Collection<
XmlElement
> CreateWsspSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing)
909
public virtual Collection<
XmlElement
> CreateWsspSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, AddressingVersion addressingVersion)
911
Collection<
XmlElement
> supportingTokenAssertions = new Collection<
XmlElement
>();
914
XmlElement
supportingTokenAssertion = CreateWsspSignedSupportingTokensAssertion(exporter, signed, signedEncrypted, optionalSigned, optionalSignedEncrypted);
931
protected
XmlElement
CreateWsspSignedSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted)
933
XmlElement
result;
944
XmlElement
policy = CreateWspPolicyWrapper(exporter);
982
protected
XmlElement
CreateWsspEndorsingSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> optionalEndorsing, AddressingVersion addressingVersion)
987
protected
XmlElement
CreateWsspSignedEndorsingSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, AddressingVersion addressingVersion)
992
protected
XmlElement
CreateWsspiSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> optionalEndorsing, AddressingVersion addressingVersion, string assertionName)
994
XmlElement
result;
1004
XmlElement
policy = CreateWspPolicyWrapper(exporter);
1044
public virtual bool TryImportWsspSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing)
1046
XmlElement
assertion;
1089
protected bool TryImportWsspSignedSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, out
XmlElement
assertion)
1110
Collection<Collection<
XmlElement
>> alternatives;
1115
foreach (Collection<
XmlElement
> alternative in alternatives)
1169
protected bool TryImportWsspEndorsingSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> optionalEndorsing, out
XmlElement
assertion)
1182
Collection<Collection<
XmlElement
>> alternatives;
1187
foreach (Collection<
XmlElement
> alternative in alternatives)
1233
protected bool TryImportWsspSignedEndorsingSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, out
XmlElement
assertion)
1246
Collection<Collection<
XmlElement
>> alternatives;
1251
foreach (Collection<
XmlElement
> alternative in alternatives)
1297
public virtual
XmlElement
CreateWsspEncryptSignatureAssertion(PolicyConversionContext policyContext, SecurityBindingElement binding)
1403
public virtual
XmlElement
CreateWsspEncryptBeforeSigningAssertion(MessageProtectionOrder protectionOrder)
1415
public virtual
XmlElement
CreateWsspProtectTokensAssertion(SecurityBindingElement sbe)
1428
public virtual bool TryImportMessageProtectionOrderAssertions(ICollection<
XmlElement
> assertions, out MessageProtectionOrder order)
1446
public virtual
XmlElement
CreateWsspIncludeTimestampAssertion(bool includeTimestamp)
1458
public virtual bool TryImportWsspIncludeTimestampAssertion(ICollection<
XmlElement
> assertions, SecurityBindingElement binding)
1464
public virtual bool TryImportWsspProtectTokensAssertion(ICollection<
XmlElement
> assertions, out bool protectTokens)
1478
public virtual
XmlElement
CreateWsspLayoutAssertion(MetadataExporter exporter, SecurityHeaderLayout layout)
1480
XmlElement
result = CreateWsspAssertion(LayoutName);
1490
public virtual bool TryImportWsspLayoutAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, SecurityBindingElement binding)
1493
XmlElement
assertion;
1498
Collection<Collection<
XmlElement
>> alternatives;
1502
foreach (Collection<
XmlElement
> alternative in alternatives)
1523
public virtual
XmlElement
CreateLayoutAssertion(SecurityHeaderLayout layout)
1540
public virtual bool TryImportLayoutAssertion(ICollection<
XmlElement
> assertions, out SecurityHeaderLayout layout)
1569
public virtual
XmlElement
CreateWsspAlgorithmSuiteAssertion(MetadataExporter exporter, SecurityAlgorithmSuite suite)
1571
XmlElement
result = CreateWsspAssertion(AlgorithmSuiteName);
1581
public virtual bool TryImportWsspAlgorithmSuiteAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, SecurityBindingElement binding)
1584
XmlElement
assertion;
1585
Collection<Collection<
XmlElement
>> alternatives;
1590
foreach (Collection<
XmlElement
> alternative in alternatives)
1608
public virtual
XmlElement
CreateAlgorithmSuiteAssertion(SecurityAlgorithmSuite suite)
1615
XmlElement
result;
1657
public virtual bool TryImportAlgorithmSuiteAssertion(ICollection<
XmlElement
> assertions, out SecurityAlgorithmSuite suite)
1697
public virtual
XmlElement
CreateWsspProtectionTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters)
1699
XmlElement
result = CreateWsspAssertion(ProtectionTokenName);
1711
public virtual bool TryImportWsspProtectionTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, SymmetricSecurityBindingElement binding)
1715
XmlElement
assertion;
1716
Collection<Collection<
XmlElement
>> alternatives;
1720
foreach (Collection<
XmlElement
> alternative in alternatives)
1737
public virtual bool TryImportWsspInitiatorTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, AsymmetricSecurityBindingElement binding)
1741
XmlElement
assertion;
1742
Collection<Collection<
XmlElement
>> alternatives;
1746
foreach (Collection<
XmlElement
> alternative in alternatives)
1763
public virtual bool TryImportWsspRecipientTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, AsymmetricSecurityBindingElement binding)
1767
XmlElement
assertion;
1768
Collection<Collection<
XmlElement
>> alternatives;
1772
foreach (Collection<
XmlElement
> alternative in alternatives)
1789
public virtual
XmlElement
CreateWsspInitiatorTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters)
1791
XmlElement
result = CreateWsspAssertion(InitiatorTokenName);
1802
public virtual
XmlElement
CreateWsspRecipientTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters)
1804
XmlElement
result = CreateWsspAssertion(RecipientTokenName);
1815
public virtual
XmlElement
CreateWsspTransportTokenAssertion(MetadataExporter exporter,
XmlElement
transportTokenAssertion)
1822
XmlElement
result = CreateWsspAssertion(TransportTokenName);
1827
(
XmlElement
)(doc.ImportNode(transportTokenAssertion, true))
1833
public virtual bool TryImportWsspTransportTokenAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, out
XmlElement
transportBindingAssertion)
1837
XmlElement
assertion;
1838
Collection<Collection<
XmlElement
>> alternatives;
1852
public virtual
XmlElement
CreateTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters)
1857
public virtual
XmlElement
CreateTokenAssertion(MetadataExporter exporter, SecurityTokenParameters parameters, bool isOptional)
1864
XmlElement
result;
1911
public virtual bool TryImportTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext, Collection<
XmlElement
> assertions, out SecurityTokenParameters parameters, out bool isOptional)
1918
XmlElement
tokenAssertion = assertions[0];
1957
public virtual void SetIncludeTokenValue(
XmlElement
tokenAssertion, SecurityTokenInclusionMode inclusionMode)
1978
public virtual bool TryGetIncludeTokenValue(
XmlElement
assertion, out SecurityTokenInclusionMode mode)
2009
public virtual
XmlElement
CreateWsspRequireDerivedKeysAssertion(bool requireDerivedKeys)
2021
public virtual bool TryImportWsspRequireDerivedKeysAssertion(ICollection<
XmlElement
> assertions, SecurityTokenParameters parameters)
2027
public virtual
XmlElement
CreateWsspKerberosTokenAssertion(MetadataExporter exporter, KerberosSecurityTokenParameters parameters)
2029
XmlElement
result = CreateWsspAssertion(KerberosTokenName);
2040
public virtual bool TryImportWsspKerberosTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
2045
Collection<Collection<
XmlElement
>> alternatives;
2052
foreach (Collection<
XmlElement
> alternative in alternatives)
2079
public virtual
XmlElement
CreateX509ReferenceStyleAssertion(X509KeyIdentifierClauseType referenceStyle)
2102
public virtual bool TryImportX509ReferenceStyleAssertion(ICollection<
XmlElement
> assertions, X509SecurityTokenParameters parameters)
2120
public virtual
XmlElement
CreateWsspX509TokenAssertion(MetadataExporter exporter, X509SecurityTokenParameters parameters)
2122
XmlElement
result = CreateWsspAssertion(X509TokenName);
2134
public virtual bool TryImportWsspX509TokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
2139
Collection<Collection<
XmlElement
>> alternatives;
2146
foreach (Collection<
XmlElement
> alternative in alternatives)
2175
public virtual
XmlElement
CreateWsspUsernameTokenAssertion(MetadataExporter exporter, UserNameSecurityTokenParameters parameters)
2177
XmlElement
result = CreateWsspAssertion(UsernameTokenName);
2187
public virtual bool TryImportWsspUsernameTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
2192
Collection<Collection<
XmlElement
>> alternatives;
2199
foreach (Collection<
XmlElement
> alternative in alternatives)
2220
public virtual
XmlElement
CreateWsspRsaTokenAssertion(RsaSecurityTokenParameters parameters)
2222
XmlElement
result = CreateMsspAssertion(RsaTokenName);
2227
public virtual bool TryImportWsspRsaTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
2232
Collection<Collection<
XmlElement
>> alternatives;
2245
public virtual
XmlElement
CreateReferenceStyleAssertion(SecurityTokenReferenceStyle referenceStyle)
2258
public virtual bool TryImportReferenceStyleAssertion(ICollection<
XmlElement
> assertions, IssuedSecurityTokenParameters parameters)
2272
public virtual
XmlElement
CreateWsspIssuerElement(EndpointAddress issuerAddress, EndpointAddress issuerMetadataAddress)
2274
XmlElement
result;
2313
result = (
XmlElement
)doc.ReadNode(new XmlTextReader(stream) { DtdProcessing = DtdProcessing.Prohibit });
2318
public virtual bool TryGetIssuer(
XmlElement
assertion, out EndpointAddress issuer, out EndpointAddress issuerMetadata)
2326
if (node is
XmlElement
&& IsWsspAssertion((
XmlElement
)node, IssuerName))
2372
public virtual
XmlElement
CreateWsspIssuedTokenAssertion(MetadataExporter exporter, IssuedSecurityTokenParameters parameters)
2374
XmlElement
result = CreateWsspAssertion(IssuedTokenName);
2376
XmlElement
issuerAssertion = CreateWsspIssuerElement(parameters.IssuerAddress, parameters.IssuerMetadataAddress);
2381
XmlElement
tokenTemplate = CreateWsspAssertion(RequestSecurityTokenTemplateName);
2383
foreach (
XmlElement
p in parameters.CreateRequestParameters(driver))
2397
public virtual bool TryGetRequestSecurityTokenTemplate(
XmlElement
assertion, out Collection<
XmlElement
> requestParameters)
2403
if (node is
XmlElement
&& IsWsspAssertion((
XmlElement
)node, RequestSecurityTokenTemplateName))
2405
requestParameters = new Collection<
XmlElement
>();
2408
if (p is
XmlElement
)
2410
requestParameters.Add((
XmlElement
)p);
2419
public virtual bool TryImportWsspIssuedTokenAssertion(MetadataImporter importer, PolicyConversionContext policyContext,
XmlElement
assertion, out SecurityTokenParameters parameters)
2424
Collection<Collection<
XmlElement
>> alternatives;
2427
Collection<
XmlElement
> requestSecurityTokenTemplate;
2436
foreach (Collection<
XmlElement
> alternative in alternatives)
2475
public virtual
XmlElement
CreateWsspMustNotSendCancelAssertion(bool requireCancel)
2479
XmlElement
result = CreateWsspAssertion(MustNotSendCancelName);
2488
public virtual bool TryImportWsspMustNotSendCancelAssertion(ICollection<
XmlElement
> assertions, out bool requireCancellation)
2494
public virtual
XmlElement
CreateWsspSpnegoContextTokenAssertion(MetadataExporter exporter, SspiSecurityTokenParameters parameters)
2496
XmlElement
result = CreateWsspAssertion(SpnegoContextTokenName);
2507
public virtual bool TryImportWsspSpnegoContextTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
2512
Collection<Collection<
XmlElement
>> alternatives;
2519
foreach (Collection<
XmlElement
> alternative in alternatives)
2549
public abstract
XmlElement
CreateWsspHttpsTokenAssertion(MetadataExporter exporter, HttpsTransportBindingElement httpsBinding);
2551
public abstract bool TryImportWsspHttpsTokenAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, HttpsTransportBindingElement httpsBinding);
2553
public virtual bool ContainsWsspHttpsTokenAssertion(ICollection<
XmlElement
> assertions)
2558
public virtual
XmlElement
CreateMsspRequireClientCertificateAssertion(bool requireClientCertificate)
2570
public virtual bool TryImportMsspRequireClientCertificateAssertion(ICollection<
XmlElement
> assertions, SslSecurityTokenParameters parameters)
2576
public virtual
XmlElement
CreateMsspSslContextTokenAssertion(MetadataExporter exporter, SslSecurityTokenParameters parameters)
2578
XmlElement
result = CreateMsspAssertion(SslContextTokenName);
2590
public virtual bool TryImportMsspSslContextTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
2595
Collection<Collection<
XmlElement
>> alternatives;
2602
foreach (Collection<
XmlElement
> alternative in alternatives)
2633
public virtual
XmlElement
CreateWsspBootstrapPolicyAssertion(MetadataExporter exporter, SecurityBindingElement bootstrapSecurity)
2689
XmlElement
nestedPolicy = CreateWspPolicyWrapper(
2693
foreach (
XmlElement
e in sp.FilterWsspPolicyAssertions(policyContext.GetBindingAssertions()))
2697
XmlElement
result = CreateWsspAssertion(BootstrapPolicyName);
2703
public virtual ICollection<
XmlElement
> FilterWsspPolicyAssertions(ICollection<
XmlElement
> policyAssertions)
2705
Collection<
XmlElement
> result = new Collection<
XmlElement
>();
2707
foreach (
XmlElement
assertion in policyAssertions)
2714
public virtual bool TryImportWsspBootstrapPolicyAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, SecureConversationSecurityTokenParameters parameters)
2718
XmlElement
assertion;
2719
Collection<Collection<
XmlElement
>> alternatives;
2771
public virtual
XmlElement
CreateWsspSecureConversationTokenAssertion(MetadataExporter exporter, SecureConversationSecurityTokenParameters parameters)
2773
XmlElement
result = CreateWsspAssertion(SecureConversationTokenName);
2785
public virtual bool TryImportWsspSecureConversationTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
2790
Collection<Collection<
XmlElement
>> alternatives;
2797
foreach (Collection<
XmlElement
> alternative in alternatives)
3068
public static bool TryGetSecurityPolicyDriver(ICollection<
XmlElement
> assertions, out WSSecurityPolicy securityPolicy)
3096
public bool TryGetSecurityPolicyDriver(ICollection<
XmlElement
> assertions, out WSSecurityPolicy securityPolicy)
System\ServiceModel\Security\WSSecurityPolicy11.cs (10)
44
public override
XmlElement
CreateWsspMustNotSendCancelAssertion(bool requireCancel)
48
XmlElement
result = CreateMsspAssertion(MustNotSendCancelName);
58
public override bool TryImportWsspMustNotSendCancelAssertion(ICollection<
XmlElement
> assertions, out bool requireCancellation)
64
public override
XmlElement
CreateWsspHttpsTokenAssertion(MetadataExporter exporter, HttpsTransportBindingElement httpsBinding)
66
XmlElement
result = CreateWsspAssertion(HttpsTokenName);
71
public override bool TryImportWsspHttpsTokenAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, HttpsTransportBindingElement httpsBinding)
79
XmlElement
assertion;
108
public override
XmlElement
CreateWsspTrustAssertion(MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode)
113
public override bool TryImportWsspTrustAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, SecurityBindingElement binding, out
XmlElement
assertion)
System\ServiceModel\Security\WSSecurityPolicy12.cs (59)
51
public override
XmlElement
CreateWsspHttpsTokenAssertion(MetadataExporter exporter, HttpsTransportBindingElement httpsBinding)
56
XmlElement
result = CreateWsspAssertion(WSSecurityPolicy.HttpsTokenName);
61
XmlElement
policy = CreateWspPolicyWrapper(exporter);
79
public override bool TryImportWsspHttpsTokenAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, HttpsTransportBindingElement httpsBinding)
87
XmlElement
assertion;
91
XmlElement
policyElement = null;
94
if (node is
XmlElement
&& node.LocalName == WSSecurityPolicy.PolicyName && (node.NamespaceURI == WSSecurityPolicy.WspNamespace || node.NamespaceURI == WSSecurityPolicy.Wsp15Namespace))
96
policyElement = (
XmlElement
)node;
105
if (node is
XmlElement
&& node.NamespaceURI == this.WsspNamespaceUri)
131
public override Collection<
XmlElement
> CreateWsspSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing, AddressingVersion addressingVersion)
133
Collection<
XmlElement
> supportingTokenAssertions = new Collection<
XmlElement
>();
136
XmlElement
supportingTokenAssertion = CreateWsspSignedSupportingTokensAssertion(exporter, signed, optionalSigned);
158
public override
XmlElement
CreateWsspSpnegoContextTokenAssertion(MetadataExporter exporter, SspiSecurityTokenParameters parameters)
160
XmlElement
result = CreateWsspAssertion(SpnegoContextTokenName);
174
public override
XmlElement
CreateMsspSslContextTokenAssertion(MetadataExporter exporter, SslSecurityTokenParameters parameters)
176
XmlElement
result = CreateMsspAssertion(SslContextTokenName);
191
public override
XmlElement
CreateWsspSecureConversationTokenAssertion(MetadataExporter exporter, SecureConversationSecurityTokenParameters parameters)
193
XmlElement
result = CreateWsspAssertion(SecureConversationTokenName);
207
XmlElement
CreateWsspMustNotSendAmendAssertion()
209
XmlElement
result = CreateWsspAssertion(MustNotSendAmendName);
213
XmlElement
CreateWsspMustNotSendRenewAssertion()
215
XmlElement
result = CreateWsspAssertion(MustNotSendRenewName);
219
public override bool TryImportWsspSpnegoContextTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
224
Collection<Collection<
XmlElement
>> alternatives;
231
foreach (Collection<
XmlElement
> alternative in alternatives)
268
public override bool TryImportMsspSslContextTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
273
Collection<Collection<
XmlElement
>> alternatives;
280
foreach (Collection<
XmlElement
> alternative in alternatives)
318
public override bool TryImportWsspSecureConversationTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
323
Collection<Collection<
XmlElement
>> alternatives;
330
foreach (Collection<
XmlElement
> alternative in alternatives)
365
public virtual bool TryImportWsspMustNotSendAmendAssertion(ICollection<
XmlElement
> assertions)
371
public virtual bool TryImportWsspMustNotSendRenewAssertion(ICollection<
XmlElement
> assertions, out bool canRenewSession)
377
XmlElement
CreateWsspSignedSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> optionalSigned)
379
XmlElement
result;
388
XmlElement
policy = CreateWspPolicyWrapper(exporter);
412
XmlElement
CreateWsspSignedEncryptedSupportingTokensAssertion(MetadataExporter exporter, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSignedEncrypted)
414
XmlElement
result;
423
XmlElement
policy = CreateWspPolicyWrapper(exporter);
447
public override bool TryImportWsspSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> endorsing, Collection<SecurityTokenParameters> signedEndorsing, Collection<SecurityTokenParameters> optionalSigned, Collection<SecurityTokenParameters> optionalSignedEncrypted, Collection<SecurityTokenParameters> optionalEndorsing, Collection<SecurityTokenParameters> optionalSignedEndorsing)
449
XmlElement
assertion;
502
bool TryImportWsspSignedSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, Collection<SecurityTokenParameters> signed, Collection<SecurityTokenParameters> optionalSigned, out
XmlElement
assertion)
515
Collection<Collection<
XmlElement
>> alternatives;
520
foreach (Collection<
XmlElement
> alternative in alternatives)
550
bool TryImportWsspSignedEncryptedSupportingTokensAssertion(MetadataImporter importer, PolicyConversionContext policyContext, ICollection<
XmlElement
> assertions, Collection<SecurityTokenParameters> signedEncrypted, Collection<SecurityTokenParameters> optionalSignedEncrypted, out
XmlElement
assertion)
563
Collection<Collection<
XmlElement
>> alternatives;
568
foreach (Collection<
XmlElement
> alternative in alternatives)
598
public override bool TryImportWsspRequireDerivedKeysAssertion(ICollection<
XmlElement
> assertions, SecurityTokenParameters parameters)
609
XmlElement
assertion = null;
617
public override
XmlElement
CreateWsspTrustAssertion(MetadataExporter exporter, SecurityKeyEntropyMode keyEntropyMode)
622
public override bool TryImportWsspTrustAssertion(MetadataImporter importer, ICollection<
XmlElement
> assertions, SecurityBindingElement binding, out
XmlElement
assertion)
627
public override
XmlElement
CreateWsspRsaTokenAssertion(RsaSecurityTokenParameters parameters)
629
XmlElement
result = CreateWsspAssertion(KeyValueTokenName);
634
public override bool TryImportWsspRsaTokenAssertion(MetadataImporter importer,
XmlElement
assertion, out SecurityTokenParameters parameters)
639
Collection<Collection<
XmlElement
>> alternatives;
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (5)
426
public virtual bool TryCreateKeyIdentifierClauseFromTokenXml(
XmlElement
element, SecurityTokenReferenceStyle tokenReferenceStyle, out SecurityKeyIdentifierClause securityKeyIdentifierClause)
449
public virtual SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXml(
XmlElement
element, SecurityTokenReferenceStyle tokenReferenceStyle)
521
protected static SecurityKeyIdentifierClause CreateDirectReference(
XmlElement
issuedTokenXml, string idAttributeLocalName, string idAttributeNamespace, Type tokenType)
531
public virtual bool CanReadTokenCore(
XmlElement
element)
554
public abstract SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml, SecurityTokenReferenceStyle tokenReferenceStyle);
System\ServiceModel\Security\WSTrust.cs (91)
94
public override bool CanReadTokenCore(
XmlElement
element)
113
public override SecurityKeyIdentifierClause CreateKeyIdentifierClauseFromTokenXmlCore(
XmlElement
issuedTokenXml,
249
XmlElement
rstXml = (doc.ReadNode(reader) as
XmlElement
);
262
XmlElement
child = (rstXml.ChildNodes[i] as
XmlElement
);
331
XmlElement
rstrXml;
334
rstrXml = (doc.ReadNode(reader2) as
XmlElement
);
358
XmlElement
child = (rstrXml.ChildNodes[i] as
XmlElement
);
367
XmlElement
proofXml = XmlHelper.GetChildElement(child);
380
XmlElement
createdXml = XmlHelper.GetChildElement(child, UtilityStrings.CreatedElement, UtilityStrings.Namespace);
386
XmlElement
expiresXml = XmlHelper.GetChildElement(child, UtilityStrings.ExpiresElement, UtilityStrings.Namespace);
420
XmlElement
GetAppliesToElement(
XmlElement
rootElement)
428
XmlElement
elem = (rootElement.ChildNodes[i] as
XmlElement
);
440
T GetAppliesTo<T>(
XmlElement
rootXml, XmlObjectSerializer serializer)
442
XmlElement
appliesToElement = GetAppliesToElement(rootXml);
481
void GetAppliesToQName(
XmlElement
rootElement, out string localName, out string namespaceUri)
484
XmlElement
appliesToElement = GetAppliesToElement(rootElement);
519
XmlElement
element = rstr.RequestSecurityTokenResponseXml.ChildNodes[i] as
XmlElement
;
524
XmlElement
combinedHashElement = XmlHelper.GetChildElement(element);
553
BinaryNegotiation GetBinaryNegotiation(
XmlElement
rootElement)
561
XmlElement
elem = rootElement.ChildNodes[i] as
XmlElement
;
589
SecurityToken GetEntropy(
XmlElement
rootElement, SecurityTokenResolver resolver)
597
XmlElement
element = rootElement.ChildNodes[i] as
XmlElement
;
602
XmlElement
tokenXml = XmlHelper.GetChildElement(element);
613
void GetIssuedAndProofXml(RequestSecurityTokenResponse rstr, out
XmlElement
issuedTokenXml, out
XmlElement
proofTokenXml)
621
XmlElement
elem = rstr.RequestSecurityTokenResponseXml.ChildNodes[i] as
XmlElement
;
685
XmlElement
proofXml;
686
XmlElement
issuedTokenXml;
794
XmlElement
proofXml;
795
XmlElement
issuedTokenXml;
839
public static BinaryNegotiation ReadBinaryNegotiation(
XmlElement
elem)
890
protected virtual void ReadReferences(
XmlElement
rstrXml, out SecurityKeyIdentifierClause requestedAttachedReference,
893
XmlElement
issuedTokenXml = null;
898
XmlElement
child = rstrXml.ChildNodes[i] as
XmlElement
;
961
internal SecurityKeyIdentifierClause CreateGenericXmlSecurityKeyIdentifierClause(XmlNodeReader reader,
XmlElement
keyIdentifierReferenceXmlElement)
974
internal SecurityKeyIdentifierClause GetKeyIdentifierXmlReferenceClause(
XmlElement
keyIdentifierReferenceXmlElement)
986
protected virtual bool ReadRequestedTokenClosed(
XmlElement
rstrXml)
991
protected virtual void ReadTargets(
XmlElement
rstXml, out SecurityKeyIdentifierClause renewTarget, out SecurityKeyIdentifierClause closeTarget)
1089
foreach (
XmlElement
property in rst.RequestProperties)
1273
public override bool TryParseKeySizeElement(
XmlElement
element, out int keySize)
1289
public override
XmlElement
CreateKeySizeElement(int keySize)
1296
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeySize.Value,
1302
public override
XmlElement
CreateKeyTypeElement(SecurityKeyType keyType)
1312
public override bool TryParseKeyTypeElement(
XmlElement
element, out SecurityKeyType keyType)
1333
public bool TryParseSymmetricKeyElement(
XmlElement
element)
1343
XmlElement
CreateSymmetricKeyTypeElement()
1346
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeyType.Value,
1352
bool TryParsePublicKeyElement(
XmlElement
element)
1362
XmlElement
CreatePublicKeyTypeElement()
1365
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeyType.Value,
1371
public override bool TryParseTokenTypeElement(
XmlElement
element, out string tokenType)
1387
public override
XmlElement
CreateTokenTypeElement(string tokenTypeUri)
1394
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.TokenType.Value,
1400
public override
XmlElement
CreateUseKeyElement(SecurityKeyIdentifier keyIdentifier, SecurityStandardsManager standardsManager)
1411
XmlElement
result = doc.CreateElement(this.DriverDictionary.UseKey.Value, this.DriverDictionary.Namespace.Value);
1430
public override
XmlElement
CreateSignWithElement(string signatureAlgorithm)
1437
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.SignWith.Value,
1443
internal override bool IsSignWithElement(
XmlElement
element, out string signatureAlgorithm)
1448
public override
XmlElement
CreateEncryptWithElement(string encryptionAlgorithm)
1455
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.EncryptWith.Value,
1461
public override
XmlElement
CreateEncryptionAlgorithmElement(string encryptionAlgorithm)
1468
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.EncryptionAlgorithm.Value,
1474
internal override bool IsEncryptWithElement(
XmlElement
element, out string encryptWithAlgorithm)
1479
internal override bool IsEncryptionAlgorithmElement(
XmlElement
element, out string encryptionAlgorithm)
1484
public override
XmlElement
CreateComputedKeyAlgorithmElement(string algorithm)
1491
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.ComputedKeyAlgorithm.Value,
1497
public override
XmlElement
CreateCanonicalizationAlgorithmElement(string algorithm)
1504
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.CanonicalizationAlgorithm.Value,
1510
internal override bool IsCanonicalizationAlgorithmElement(
XmlElement
element, out string canonicalizationAlgorithm)
1515
public override bool TryParseRequiredClaimsElement(
XmlElement
element, out System.Collections.ObjectModel.Collection<
XmlElement
> requiredClaims)
1523
requiredClaims = new System.Collections.ObjectModel.Collection<
XmlElement
>();
1525
if (node is
XmlElement
)
1529
requiredClaims.Add((
XmlElement
)node);
1538
public override
XmlElement
CreateRequiredClaimsElement(IEnumerable<
XmlElement
> claimsList)
1545
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.Claims.Value,
1547
foreach (
XmlElement
claimElement in claimsList)
1549
XmlElement
element = (
XmlElement
)doc.ImportNode(claimElement, true);
1651
protected static bool CheckElement(
XmlElement
element, string name, string ns, out string value)
System\ServiceModel\Security\WSTrustDec2005.cs (16)
70
public override
XmlElement
CreateKeyTypeElement(SecurityKeyType keyType)
75
XmlElement
result = doc.CreateElement(this.DriverDictionary.Prefix.Value, this.DriverDictionary.KeyType.Value,
84
public override bool TryParseKeyTypeElement(
XmlElement
element, out SecurityKeyType keyType)
100
public override
XmlElement
CreateRequiredClaimsElement(IEnumerable<
XmlElement
> claimsList)
102
XmlElement
result = base.CreateRequiredClaimsElement(claimsList);
130
public override Collection<
XmlElement
> ProcessUnknownRequestParameters(Collection<
XmlElement
> unknownRequestParameters, Collection<
XmlElement
> originalRequestParameters)
139
XmlElement
secondaryParamElement = originalRequestParameters[0].OwnerDocument.CreateElement(DXD.TrustDec2005Dictionary.Prefix.Value, DXD.TrustDec2005Dictionary.SecondaryParameters.Value, DXD.TrustDec2005Dictionary.Namespace.Value);
145
Collection<
XmlElement
> tempCollection = new Collection<
XmlElement
>();
153
internal virtual bool IsSecondaryParametersElement(
XmlElement
element)
159
public virtual
XmlElement
CreateKeyWrapAlgorithmElement(string keyWrapAlgorithm)
166
XmlElement
result = doc.CreateElement(DXD.TrustDec2005Dictionary.Prefix.Value, DXD.TrustDec2005Dictionary.KeyWrapAlgorithm.Value,
172
internal override bool IsKeyWrapAlgorithmElement(
XmlElement
element, out string keyWrapAlgorithm)
System\ServiceModel\Security\WSTrustFeb2005.cs (13)
118
public override Collection<
XmlElement
> ProcessUnknownRequestParameters(Collection<
XmlElement
> unknownRequestParameters, Collection<
XmlElement
> originalRequestParameters)
123
protected override void ReadReferences(
XmlElement
rstrXml, out SecurityKeyIdentifierClause requestedAttachedReference,
126
XmlElement
issuedTokenXml = null;
131
XmlElement
child = rstrXml.ChildNodes[i] as
XmlElement
;
170
protected override bool ReadRequestedTokenClosed(
XmlElement
rstrXml)
174
XmlElement
child = (rstrXml.ChildNodes[i] as
XmlElement
);
186
protected override void ReadTargets(
XmlElement
rstXml, out SecurityKeyIdentifierClause renewTarget, out SecurityKeyIdentifierClause closeTarget)
193
XmlElement
child = (rstXml.ChildNodes[i] as
XmlElement
);
System\ServiceModel\Security\XmlHelper.cs (12)
49
internal static
XmlElement
GetChildElement(
XmlElement
parent)
56
XmlElement
result = null;
66
result = ((
XmlElement
) child);
82
internal static
XmlElement
GetChildElement(
XmlElement
parent, string childLocalName, string childNamespace)
101
return ((
XmlElement
) child);
175
internal static void OnChildNodeTypeMissing(
XmlElement
parent, XmlNodeType expectedNodeType)
185
internal static void OnEmptyElementError(
XmlElement
e)
215
internal static void OnUnexpectedChildNodeError(
XmlElement
parent, XmlNode n)
267
internal static string ReadTextElementAsTrimmedString(
XmlElement
element)
469
static public UniqueId ReadTextElementAsUniqueId(
XmlElement
element)
System.ServiceModel.Channels (5)
System\ServiceModel\Channels\UdpTransportBindingElement.cs (3)
287
ICollection<
XmlElement
> bindingAssertions = policyContext.GetBindingAssertions();
289
XmlElement
retransmitAssertion = null;
290
foreach (
XmlElement
assertion in bindingAssertions)
System\ServiceModel\Channels\UdpTransportBindingElementPolicy.cs (1)
41
XmlElement
assertion = Document.CreateElement(UdpConstants.WsdlSoapUdpTransportPrefix, UdpConstants.RetransmissionEnabled, UdpConstants.WsdlSoapUdpTransportNamespace);
System\ServiceModel\Channels\UdpTransportImporter.cs (1)
18
public void BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, Xml.Schema.XmlSchemaSet xmlSchemas, ICollection<Xml.
XmlElement
> policy)
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpPage.cs (1)
348
else if (typeof(XElement).IsAssignableFrom(type) || typeof(
XmlElement
).IsAssignableFrom(type))
System.Web.Extensions (15)
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
50
void System.ServiceModel.Description.IWsdlImportExtension.BeforeImport(System.Web.Services.Description.ServiceDescriptionCollection wsdlDocuments, System.Xml.Schema.XmlSchemaSet xmlSchemas, System.Collections.Generic.ICollection<System.Xml.
XmlElement
> policy)
Compilation\WCFModel\HttpBindingExtension.cs (1)
56
void IWsdlImportExtension.BeforeImport(WsdlNS.ServiceDescriptionCollection wsdlDocuments, XmlSchemaSet xmlSchemas, ICollection<
XmlElement
> policy)
Compilation\WCFModel\SchemaMerger.cs (8)
54
typeof(
XmlElement
[]),
364
if (originalValue is
XmlElement
)
366
return CompareXmlElements((
XmlElement
)originalValue, (
XmlElement
)newValue, out differentLocation);
482
private static bool CompareXmlElements(
XmlElement
element1,
XmlElement
element2, out string differentLocation)
668
if (value is
XmlElement
)
670
return ((
XmlElement
)value).LocalName;
Script\Services\WebServiceTypeData.cs (5)
184
private static string GetInnerText(XmlQualifiedName typeName,
XmlElement
xmlElement) {
255
XmlElement
actualTypeElement = ImportAnnotation(annotation, ActualTypeAnnotationName);
274
static
XmlElement
ImportAnnotation(XmlSchemaAnnotation annotation, XmlQualifiedName annotationQualifiedName) {
280
XmlElement
annotationElement = markup[i] as
XmlElement
;
System.Web.Mobile (6)
UI\MobileControls\Design\Util\WebConfigManager.cs (6)
162
private
XmlElement
FindXmlNode(XmlNode node, string name) {
168
child is
XmlElement
) {
169
return (
XmlElement
)child;
177
internal
XmlElement
FindFilterSection(XmlDocument document, bool createIfNotExists) {
187
XmlElement
webSection = FindXmlNode(configSection, "system.web");
197
XmlElement
filters = FindXmlNode(webSection, "deviceFilters");
System.Web.Services (98)
System\Web\Services\Description\MimeXmlImporter.cs (1)
39
importedReturn.TypeName = typeof(
XmlElement
).FullName;
System\Web\Services\Description\ProtocolImporter.cs (3)
474
if (item is
XmlElement
) {
475
XmlElement
element = (
XmlElement
)item;
System\Web\Services\Description\ServiceDescription.cs (25)
462
internal static WsiProfiles GetConformanceClaims(
XmlElement
documentation) {
471
if (child is
XmlElement
) {
472
XmlElement
element = (
XmlElement
)child;
484
internal static void AddConformanceClaims(
XmlElement
documentation, WsiProfiles claims) {
498
XmlElement
claim = d.CreateElement(Soap.ClaimPrefix, Soap.Element.Claim, Soap.ConformanceClaim);
567
XmlElement
documentationElement;
605
public
XmlElement
DocumentationElement {
652
internal
XmlElement
GetDocumentationElement() {
1496
public
XmlElement
Find(string name, string ns) {
1498
XmlElement
element = List[i] as
XmlElement
;
1511
public
XmlElement
[] FindAll(string name, string ns) {
1514
XmlElement
element = List[i] as
XmlElement
;
1520
return (
XmlElement
[])list.ToArray(typeof(
XmlElement
));
1523
void SetHandled(
XmlElement
element) {
1535
if (item is
XmlElement
)
1536
return IsHandled((
XmlElement
)item);
1546
if (item is
XmlElement
)
1547
return IsRequired((
XmlElement
)item);
1552
bool IsHandled(
XmlElement
element) {
1557
bool IsRequired(
XmlElement
element) {
1579
if (!(value is
XmlElement
|| value is ServiceDescriptionFormatExtension))
System\Web\Services\Description\ServiceDescriptionSerializer.cs (62)
206
else if (ai is System.Xml.
XmlElement
) {
207
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
340
else if (ai is System.Xml.
XmlElement
) {
341
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
415
else if (ai is System.Xml.
XmlElement
) {
416
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
489
else if (ai is System.Xml.
XmlElement
) {
490
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
649
else if (ai is System.Xml.
XmlElement
) {
650
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
738
else if (ai is System.Xml.
XmlElement
) {
739
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
1131
else if (ai is System.Xml.
XmlElement
) {
1132
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
1977
if (ai is System.Xml.
XmlElement
) {
1978
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
2024
if (ai is System.Xml.
XmlElement
) {
2025
System.Xml.
XmlElement
elem = (System.Xml.
XmlElement
)ai;
4186
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
4209
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
4270
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
4277
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
4341
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
4354
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
4569
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
4585
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
4646
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
4670
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
4730
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
4740
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
4940
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
4968
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
5613
a_1.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
5776
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
5810
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6299
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6306
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6372
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6385
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6449
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6453
a_5.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6517
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6521
a_5.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6585
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6589
a_5.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6650
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6657
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6725
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6729
a_4.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
6786
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
6793
a_3.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
10616
o.@DocumentationElement = (global::System.Xml.
XmlElement
)ReadXmlNode(false);
10620
a_3.Add((global::System.Xml.
XmlElement
)ReadXmlNode(false));
System\Web\Services\Protocols\RuntimeUtils.cs (1)
44
internal static string ElementString(
XmlElement
element) {
System\Web\Services\Protocols\SoapServerProtocol.cs (3)
834
XmlElement
upgradeElement = doc.CreateElement(Soap12.Prefix, Soap12.Element.Upgrade, Soap12.Namespace);
845
private static
XmlElement
CreateUpgradeEnvelope(XmlDocument doc, string prefix, string envelopeNs) {
846
XmlElement
envelopeElement = doc.CreateElement(Soap12.Prefix, Soap12.Element.UpgradeEnvelope, Soap12.Namespace);
System\Web\Services\Protocols\SoapUnknownHeader.cs (3)
22
XmlElement
element;
29
public
XmlElement
Element {
162
private string GetElementAttribute(string name, string ns,
XmlElement
element) {
System.Windows.Forms (140)
parent\parent\parent\public\Internal\NDP\Inc\mansign.cs (63)
260
internal ManifestSignedXml (
XmlElement
elem) : base(elem) {}
267
private static
XmlElement
FindIdElement (
XmlElement
context, string idValue) {
271
XmlElement
idReference = context.SelectSingleNode("//*[@Id=\"" + idValue + "\"]") as
XmlElement
;
274
idReference = context.SelectSingleNode("//*[@id=\"" + idValue + "\"]") as
XmlElement
;
277
return context.SelectSingleNode("//*[@ID=\"" + idValue + "\"]") as
XmlElement
;
280
public override
XmlElement
GetIdElement (XmlDocument document, string idValue) {
349
XmlElement
signatureNode = m_manifestDom.SelectSingleNode("//ds:Signature", nsm) as
XmlElement
;
377
XmlElement
reference = referenceNode as
XmlElement
;
400
XmlElement
transform = transforms[i] as
XmlElement
;
439
XmlElement
transform = transforms[i] as
XmlElement
;
509
XmlElement
licenseNode = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license", nsm) as
XmlElement
;
554
private
XmlElement
ExtractPrincipalFromManifest () {
560
return assemblyIdentityNode as
XmlElement
;
564
XmlElement
assemblyIdentity = m_manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
565
XmlElement
principal = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as
XmlElement
;
597
XmlElement
publisherIdentity = m_manifestDom.SelectSingleNode("asm:assembly/asm2:publisherIdentity", nsm) as
XmlElement
;
634
XmlElement
manifestInformation = manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation", nsm) as
XmlElement
;
652
XmlElement
dsElement = manifestDom.SelectSingleNode("asm:assembly/ds:Signature", nsm) as
XmlElement
;
711
XmlElement
snModulus = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Modulus", nsm) as
XmlElement
;
712
XmlElement
snExponent = m_manifestDom.SelectSingleNode("asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Exponent", nsm) as
XmlElement
;
773
XmlElement
assembly = manifestDom.SelectSingleNode("asm:assembly", nsm) as
XmlElement
;
774
XmlElement
assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
780
XmlElement
publisherIdentity = manifestDom.SelectSingleNode("asm:assembly/asm2:publisherIdentity", nsm) as
XmlElement
;
800
XmlElement
signature = manifestDom.SelectSingleNode("asm:assembly/ds:Signature", nsm) as
XmlElement
;
824
XmlElement
assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
865
XmlElement
assemblyIdentity = manifestDom.SelectSingleNode("asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
941
private static XmlDocument CreateLicenseDom (CmiManifestSigner signer,
XmlElement
principal, byte[] hash) {
948
XmlElement
assemblyIdentityNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as
XmlElement
;
954
XmlElement
manifestInformationNode = licenseDom.SelectSingleNode("r:license/r:grant/as:ManifestInformation", nsm) as
XmlElement
;
960
XmlElement
authenticodePublisherNode = licenseDom.SelectSingleNode("r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as
XmlElement
;
1000
XmlElement
xmlDigitalSignature = signedXml.GetXml();
1006
XmlElement
issuerNode = licenseDom.SelectSingleNode("r:license/r:issuer", nsm) as
XmlElement
;
1048
XmlElement
asTimestamp = licenseDom.CreateElement("as", "Timestamp", AuthenticodeNamespaceUri);
1051
XmlElement
dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl);
1054
XmlElement
signatureNode = licenseDom.SelectSingleNode("r:license/r:issuer/ds:Signature", nsm) as
XmlElement
;
1071
XmlElement
signatureParent = manifestDom.SelectSingleNode("asm:assembly", nsm) as
XmlElement
;
1108
XmlElement
xmlDigitalSignature = signedXml.GetXml();
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (77)
46
internal ManifestSignedXml2(
XmlElement
elem)
73
public override
XmlElement
GetIdElement(XmlDocument document, string idValue)
160
XmlElement
signatureNode = GetSingleNode(m_manifestDom, "//ds:Signature[@Id=\"StrongNameSignature\"]", nsm) as
XmlElement
;
237
XmlElement
licenseNode = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license", nsm) as
XmlElement
;
255
VerifySignatureTimestampNew(nodes[0] as
XmlElement
, nsm, out verificationTime);
315
XmlElement
licenseNode = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license", nsm) as
XmlElement
;
328
XmlElement
signatureNode = GetSingleNode(licenseNode, "//r:issuer/ds:Signature", nsm) as
XmlElement
;
341
signatureNode = GetSingleNode(licenseDom, "//r:issuer/ds:Signature", nsm) as
XmlElement
;
477
XmlElement
subjectNode = GetSingleNode(licenseNode, "r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as
XmlElement
;
586
private bool VerifySignatureForm(
XmlElement
signatureNode, string signatureKind, XmlNamespaceManager nsm)
615
XmlElement
reference = referenceNode as
XmlElement
;
644
XmlElement
transform = transforms[i] as
XmlElement
;
692
XmlElement
transform = transforms[i] as
XmlElement
;
718
private bool GetManifestInformation(
XmlElement
licenseNode, XmlNamespaceManager nsm, out string hash, out string description, out string url)
724
XmlElement
manifestInformation = GetSingleNode(licenseNode, "r:grant/as:ManifestInformation", nsm) as
XmlElement
;
761
private bool VerifySignatureTimestamp(
XmlElement
signatureNode, XmlNamespaceManager nsm, out DateTime verificationTime)
765
XmlElement
node = GetSingleNode(signatureNode, "ds:Object/as:Timestamp", nsm) as
XmlElement
;
817
private bool VerifySignatureTimestampNew(
XmlElement
signatureNode, XmlNamespaceManager nsm, out DateTime verificationTime)
1053
XmlElement
publisherIdentity = GetSingleNode(m_manifestDom, "asm:assembly/asm2:publisherIdentity", nsm) as
XmlElement
;
1154
private
XmlElement
ExtractPrincipalFromManifest()
1161
return assemblyIdentityNode as
XmlElement
;
1166
XmlElement
assemblyIdentity = GetSingleNode(m_manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
1167
XmlElement
principal = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as
XmlElement
;
1205
XmlElement
publisherIdentity = GetSingleNode(m_manifestDom, "asm:assembly/asm2:publisherIdentity", nsm) as
XmlElement
;
1246
XmlElement
manifestInformation = GetSingleNode(manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/msrel:RelData/r:license/r:grant/as:ManifestInformation", nsm) as
XmlElement
;
1267
XmlElement
dsElement = GetSingleNode(manifestDom, "asm:assembly/ds:Signature", nsm) as
XmlElement
;
1336
XmlElement
snModulus = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Modulus", nsm) as
XmlElement
;
1337
XmlElement
snExponent = GetSingleNode(m_manifestDom, "asm:assembly/ds:Signature/ds:KeyInfo/ds:KeyValue/ds:RSAKeyValue/ds:Exponent", nsm) as
XmlElement
;
1407
XmlElement
assembly = GetSingleNode(manifestDom, "asm:assembly", nsm) as
XmlElement
;
1408
XmlElement
assemblyIdentity = GetSingleNode(manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
1415
XmlElement
publisherIdentity = GetSingleNode(manifestDom, "asm:assembly/asm2:publisherIdentity", nsm) as
XmlElement
;
1435
XmlElement
signature = GetSingleNode(manifestDom, "asm:assembly/ds:Signature", nsm) as
XmlElement
;
1496
XmlElement
assemblyIdentity = GetSingleNode(manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
1556
XmlElement
assemblyIdentity = GetSingleNode(manifestDom, "asm:assembly/asm:assemblyIdentity", nsm) as
XmlElement
;
1675
private static XmlDocument CreateLicenseDom(CmiManifestSigner2 signer,
XmlElement
principal, byte[] hash)
1683
XmlElement
assemblyIdentityNode = GetSingleNode(licenseDom, "r:license/r:grant/as:ManifestInformation/as:assemblyIdentity", nsm) as
XmlElement
;
1690
XmlElement
manifestInformationNode = GetSingleNode(licenseDom, "r:license/r:grant/as:ManifestInformation", nsm) as
XmlElement
;
1696
XmlElement
authenticodePublisherNode = GetSingleNode(licenseDom, "r:license/r:grant/as:AuthenticodePublisher/as:X509SubjectName", nsm) as
XmlElement
;
1743
XmlElement
xmlDigitalSignature = signedXml.GetXml();
1749
XmlElement
issuerNode = GetSingleNode(licenseDom, "r:license/r:issuer", nsm) as
XmlElement
;
1847
XmlElement
signatureValueNode = GetSingleNode(licenseDom, "r:license/r:issuer/ds:Signature/ds:SignatureValue", nsm) as
XmlElement
;
1881
XmlElement
asTimestamp = licenseDom.CreateElement("as", "Timestamp", AuthenticodeNamespaceUri);
1884
XmlElement
dsObject = licenseDom.CreateElement("Object", SignedXml.XmlDsigNamespaceUrl);
1887
XmlElement
signatureNode = GetSingleNode(licenseDom, "r:license/r:issuer/ds:Signature", nsm) as
XmlElement
;
1906
XmlElement
signatureParent = GetSingleNode(manifestDom, "asm:assembly", nsm) as
XmlElement
;
1961
XmlElement
xmlDigitalSignature = signedXml.GetXml();
System.Xml (163)
System\Xml\Dom\DocumentSchemaValidator.cs (14)
124
partialValidationType = FindSchemaInfo(nodeToValidate as
XmlElement
);
167
XmlElement
elem = (
XmlElement
)node;
246
XmlElement
docElem = ((XmlDocument)node).DocumentElement;
301
XmlElement
elementNode = currentNode as
XmlElement
;
353
private void ValidateAttributes(
XmlElement
elementNode) {
439
private XmlSchemaObject FindSchemaInfo(
XmlElement
elementToValidate) {
502
XmlElement
parentElement = attributeToValidate.OwnerElement;
521
private XmlSchemaObject GetTypeFromAncestors(
XmlElement
elementToValidate, XmlSchemaObject ancestorType, int ancestorsCount) {
533
XmlElement
currentElement = node as
XmlElement
;
602
private void ValidateSingleElement(
XmlElement
elementNode, bool skipToEnd, XmlSchemaInfo newSchemaInfo) {
654
ValidateSingleElement(child as
XmlElement
, true, null);
System\Xml\Dom\DocumentXmlWriter.cs (6)
165
XmlElement
elem = write as
XmlElement
;
358
XmlElement
elem = start as
XmlElement
;
420
XmlElement
elem = parent as
XmlElement
;
System\Xml\Dom\DocumentXPathNavigator.cs (37)
21
private
XmlElement
namespaceParent; // parent for namespace
163
XmlElement
element = document.DocumentElement;
200
XmlElement
element = source as
XmlElement
;
224
XmlElement
element = source as
XmlElement
;
244
XmlElement
element = source as
XmlElement
;
267
XmlElement
element = source as
XmlElement
;
318
XmlElement
element = node as
XmlElement
;
336
element = element.ParentNode as
XmlElement
;
354
XmlElement
element = source as
XmlElement
;
369
namespaceParent = (
XmlElement
)source;
373
element = element.ParentNode as
XmlElement
;
378
namespaceParent = (
XmlElement
)source;
387
XmlElement
element = source as
XmlElement
;
459
XmlElement
element = attributes.parent.ParentNode as
XmlElement
;
467
element = element.ParentNode as
XmlElement
;
554
XmlElement
element = attributes.parent.ParentNode as
XmlElement
;
562
element = element.ParentNode as
XmlElement
;
567
private bool PathHasDuplicateNamespace(
XmlElement
top,
XmlElement
bottom, string localName) {
575
bottom = bottom.ParentNode as
XmlElement
;
743
XmlElement
element = document.GetElementById(id);
1085
XmlElement
element = ((XmlAttribute)node1).OwnerElement;
1509
List<
XmlElement
> elements = new List<
XmlElement
>();
1512
XmlElement
element = node as
XmlElement
;
1539
XmlElement
element = attribute.OwnerElement;
1563
XmlElement
element = attribute.OwnerElement;
System\Xml\Dom\XmlAttribute.cs (4)
122
XmlElement
ownerElement = OwnerElement;
131
XmlElement
ownerElement = OwnerElement;
270
public virtual
XmlElement
OwnerElement {
272
return parentNode as
XmlElement
;
System\Xml\Dom\XmlAttributeCollection.cs (9)
277
XmlAttribute defattr = parent.OwnerDocument.GetDefaultAttribute( (
XmlElement
)parent, retNode.Prefix, retNode.LocalName, retNode.NamespaceURI );
290
XmlElement
parentElem = parent as
XmlElement
;
305
XmlElement
parentElem = parent as
XmlElement
;
331
XmlElement
parentElem = parent as
XmlElement
;
345
XmlElement
parentElem = parent as
XmlElement
;
System\Xml\Dom\XmlDocument.cs (17)
200
private WeakReference GetElement(ArrayList elementList,
XmlElement
elem) {
207
if ((
XmlElement
)(elemRef.Target) == elem)
217
internal void AddElementWithId( string id,
XmlElement
elem ) {
233
internal void RemoveElementWithId( string id,
XmlElement
elem ) {
296
public
XmlElement
DocumentElement {
297
get { return(
XmlElement
)FindChild(XmlNodeType.Element); }
530
public
XmlElement
CreateElement( String name ) {
538
internal void AddDefaultAttributes(
XmlElement
elem ) {
564
private SchemaElementDecl GetSchemaElementDecl(
XmlElement
elem ) {
752
public
XmlElement
CreateElement( String qualifiedName, String namespaceURI ) {
766
public virtual
XmlElement
GetElementById( string elementId ) {
771
XmlElement
elem = (
XmlElement
)elemRef.Target;
889
public virtual
XmlElement
CreateElement( string prefix, string localName, string namespaceURI) {
890
XmlElement
elem = new XmlElement( AddXmlName( prefix, localName, namespaceURI, null ), true, this );
1397
internal XmlAttribute GetDefaultAttribute(
XmlElement
elem, string attrPrefix, string attrLocalname, string attrNamespaceURI ) {
1459
XmlElement
documentElement = DocumentElement;
System\Xml\Dom\XmlElement.cs (5)
52
XmlElement
element = doc.CreateElement( Prefix, LocalName, NamespaceURI );
364
if (GetType() == typeof(
XmlElement
)) {
383
private static void WriteElementTo(XmlWriter writer,
XmlElement
e) {
387
e = n as
XmlElement
;
389
if (e != null && e.GetType() == typeof(
XmlElement
)) {
System\Xml\Dom\XmlLoader.cs (11)
91
XmlElement
element;
135
element = parent as
XmlElement
;
411
XmlElement
element = new XmlElement( reader.Prefix, reader.LocalName, reader.NamespaceURI, this.doc );
613
if ( node is
XmlElement
&& ((
XmlElement
)node).HasAttributes ) {
615
foreach( XmlAttribute attr in ((
XmlElement
)node).Attributes ) {
688
internal void LoadInnerXmlElement(
XmlElement
node, string innerxmltext ) {
693
RemoveDuplicateNamespace( (
XmlElement
) node, mgr, false );
701
private void RemoveDuplicateNamespace(
XmlElement
elem, XmlNamespaceManager mgr, bool fCheckElemAttrs ) {
742
XmlElement
childElem = child as
XmlElement
;
System\Xml\Dom\XmlNode.cs (12)
925
XmlElement
elem = (
XmlElement
)node;
990
XmlElement
elem = (
XmlElement
)node;
1036
public virtual
XmlElement
this[string name]
1041
return(
XmlElement
) n;
1049
public virtual
XmlElement
this[string localname, string ns]
1054
return(
XmlElement
) n;
1119
XmlElement
elem = null;
1121
elem = node as
XmlElement
;
1143
XmlElement
elem = null;
1145
elem = node as
XmlElement
;
System\Xml\Dom\XmlNodeReader.cs (21)
264
return((
XmlElement
)curNode).IsEmpty;
295
return ((
XmlElement
)curNode).Attributes.Count;
418
private String GetAttributeFromElement(
XmlElement
elem, String name ) {
430
return GetAttributeFromElement((
XmlElement
)curNode, name);
432
return GetAttributeFromElement((
XmlElement
)elemNode, name);
441
private String GetAttributeFromElement(
XmlElement
elem, String name, String ns ) {
452
return GetAttributeFromElement((
XmlElement
)curNode, name, ns);
454
return GetAttributeFromElement((
XmlElement
)elemNode, name, ns);
469
return ((
XmlElement
)curNode).Attributes[attributeIndex].Value;
472
return ((
XmlElement
)elemNode).Attributes[attributeIndex].Value;
557
private bool MoveToAttributeFromElement(
XmlElement
elem, String name, String ns ) {
580
return MoveToAttributeFromElement((
XmlElement
)curNode, name, namespaceURI );
582
return MoveToAttributeFromElement((
XmlElement
)elemNode, name, namespaceURI );
604
attr = ((
XmlElement
)curNode).Attributes[attributeIndex];
613
attr = ((
XmlElement
)elemNode).Attributes[attributeIndex];
756
XmlElement
elem = (
XmlElement
)node;
808
XmlElement
elem = (
XmlElement
)node;
847
XmlElement
elem = (
XmlElement
)node;
System\Xml\Schema\Parser.cs (2)
294
private
XmlElement
LoadElementNode(bool root) {
300
XmlElement
element = dummyDocument.CreateElement( r.Prefix, r.LocalName, r.NamespaceURI );
System\Xml\Serialization\_Events.cs (3)
95
XmlElement
elem;
100
internal XmlElementEventArgs(
XmlElement
elem, int lineNumber, int linePosition, object o, string qnames) {
114
public
XmlElement
Element {
System\Xml\Serialization\Types.cs (1)
782
else if (typeof(
XmlElement
).IsAssignableFrom(type))
System\Xml\Serialization\XmlReflectionImporter.cs (3)
1458
Type targetType = typeof(IXmlSerializable).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(XmlNode).IsAssignableFrom(arrayElementType) ? arrayElementType : typeof(
XmlElement
);
1670
Type targetType = typeof(IXmlSerializable).IsAssignableFrom(accessorType) ? accessorType : typeof(XmlNode).IsAssignableFrom(accessorType) ? accessorType : typeof(
XmlElement
);
1819
if (choiceTypes.Contains(typeof(
XmlElement
)) && a.XmlAnyElements.Count > 0) {
System\Xml\Serialization\XmlSchemaExporter.cs (1)
1048
XmlElement
e = d.CreateElement("keepNamespaceDeclarations");
System\Xml\Serialization\XmlSchemaImporter.cs (6)
1126
mapping.TypeDesc = Scope.GetTypeDesc(makeElement ? typeof(
XmlElement
) : typeof(XmlNode));
1297
mapping.TypeDesc = Scope.GetTypeDesc(typeof(
XmlElement
));
1304
mapping.TypeDesc = Scope.GetTypeDesc(mixed ? typeof(XmlNode) : typeof(
XmlElement
));
1420
if (node is
XmlElement
) {
1421
XmlElement
e = (
XmlElement
)node;
System\Xml\Serialization\XmlSerializationReader.cs (5)
1151
protected void UnknownElement(object o,
XmlElement
elem) {
1156
protected void UnknownElement(object o,
XmlElement
elem, string qnames) {
1206
UnknownElement(o, (
XmlElement
)unknownNode, qnames);
1789
XmlElement
unknownElement = unknownNode as
XmlElement
;
System\Xml\Serialization\XmlSerializationWriter.cs (2)
691
if (node is
XmlElement
&& name != null && name.Length > 0) {
2591
string fullTypeName = typeof(
XmlElement
).FullName;
System\Xml\Serialization\XmlSerializationWriterILGen.cs (4)
1605
string fullTypeName = typeof(
XmlElement
).FullName;
1608
ilg.IsInst(typeof(
XmlElement
));
1613
LocalBuilder elemLoc = ilg.DeclareLocal(typeof(
XmlElement
), "elem");
1614
source.Load(typeof(
XmlElement
));
WindowsBase (28)
Base\MS\Internal\IO\Packaging\CustomSignedXml.cs (11)
40
public override
XmlElement
GetIdElement(XmlDocument document, string idValue)
43
XmlElement
elem = base.GetIdElement(document, idValue);
82
private static
XmlElement
SelectNodeByIdFromObjects(Signature signature, string idValue)
84
XmlElement
node = null;
118
private static
XmlElement
SelectSubObjectNodeForXAdES(Signature signature, string idValue)
120
XmlElement
node = null;
156
private static
XmlElement
SelectSubObjectNodeForXAdESInDataObjects(Signature signature, string idValue)
158
XmlElement
node = null;
167
XmlElement
element = dataObject.GetXml();
183
XmlNode local = nodeList[0] as
XmlElement
;
196
node = local as
XmlElement
;
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (1)
708
_signedXml.LoadXml((
XmlElement
)node);
Base\MS\Internal\IO\Packaging\XmlSignatureManifest.cs (10)
576
XmlElement
xmlE = (
XmlElement
)manifest;
652
XmlElement
reference = xDoc.CreateElement(XTable.Get(XTable.ID.ReferenceTagName), SignedXml.XmlDsigNamespaceUrl);
669
XmlElement
transforms = xDoc.CreateElement(XTable.Get(XTable.ID.TransformsTagName), SignedXml.XmlDsigNamespaceUrl);
675
XmlElement
transform = xDoc.CreateElement(XTable.Get(XTable.ID.TransformTagName), SignedXml.XmlDsigNamespaceUrl);
756
XmlElement
reference = xDoc.CreateElement(XTable.Get(XTable.ID.ReferenceTagName), SignedXml.XmlDsigNamespaceUrl);
770
XmlElement
transforms = xDoc.CreateElement(XTable.Get(XTable.ID.TransformsTagName), SignedXml.XmlDsigNamespaceUrl);
773
XmlElement
transform = xDoc.CreateElement(XTable.Get(XTable.ID.TransformTagName), SignedXml.XmlDsigNamespaceUrl);
799
XmlElement
digestMethod = xDoc.CreateElement(XTable.Get(XTable.ID.DigestMethodTagName), SignedXml.XmlDsigNamespaceUrl);
809
XmlElement
digestValue = xDoc.CreateElement(XTable.Get(XTable.ID.DigestValueTagName), SignedXml.XmlDsigNamespaceUrl);
Base\MS\Internal\IO\Packaging\XmlSignatureProperties.cs (6)
97
internal static
XmlElement
AssembleSignatureProperties(
115
XmlElement
signatureProperties = xDoc.CreateElement(XTable.Get(XTable.ID.SignaturePropertiesTagName),
119
XmlElement
signatureProperty = xDoc.CreateElement(XTable.Get(XTable.ID.SignaturePropertyTagName),
130
XmlElement
signatureTime = xDoc.CreateElement(XTable.Get(XTable.ID.SignatureTimeTagName),
132
XmlElement
signatureTimeFormat = xDoc.CreateElement(XTable.Get(XTable.ID.SignatureTimeFormatTagName),
134
XmlElement
signatureTimeValue = xDoc.CreateElement(XTable.Get(XTable.ID.SignatureTimeValueTagName),